Comprehensive guides for integrating and using BRICS Pay
BRICS Pay provides a unified payment gateway that enables seamless cross-border transactions across BRICS member nations. This documentation covers integration for merchants, developers, and financial institutions.
Brazil, Russia, India, China, South Africa, UAE, Egypt, Ethiopia, Iran, and expanding.
POST /oauth/token
Content-Type: application/json
{
"grant_type": "client_credentials",
"client_id": "your_client_id",
"client_secret": "your_client_secret"
}
Response includes an access token valid for 1 hour.
Generate a payment QR code for customers to scan with their BRICS Pay app:
POST /v1/payments/qr
Authorization: Bearer {access_token}
{
"amount": 100.00,
"currency": "CNY",
"merchant_id": "MERCHANT_123",
"order_id": "ORD_456789",
"description": "Order #12345"
}
Configure webhooks to receive payment notifications:
payment.completed - Payment successfully processedpayment.failed - Payment failedrefund.processed - Refund completedsettlement.ready - Funds ready for settlementPOST /v1/refunds
{
"original_transaction_id": "TXN_123456",
"amount": 50.00,
"reason": "Customer request"
}
Never expose your Client Secret in client-side code. Always make API calls from your server.
Use the sandbox environment for testing: