The official PHP SDK for Blindpay - Global payments infrastructure made simple.
- PHP 8.2 or higher
- Composer
composer require blindpay/phpTo get started, you will need both your API key and your instance id, you can obtain your API key and instance id from the Blindpay dashboard https://app.blindpay.com/instances/{instanceId}/api-keys
use BlindPay\SDK\BlindPay;
$blindpay = new BlindPay(
apiKey: 'your-api-key-here',
instanceId: 'your-instance-id-here'
);Note
All api calls are going to use the provided api key and instance id
use BlindPay\SDK\BlindPay;
function getAvailableRails(): void
{
$blindpay = new BlindPay(
apiKey: 'your-api-key-here',
instanceId: 'your-instance-id-here'
);
$response = $blindpay->available->getRails();
if ($response->isError()) {
throw new RuntimeException($response->error->message);
}
foreach ($response->data) {
echo "Rail: {$rail->label} ({$rail->value}) - {$rail->country}\n";
}
}
getAvailableRails();For detailed API documentation, visit:
- Email: gabriel@blindpay.com
- Issues: GitHub Issues
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by the Blindpay team