Accept Payment
Server to Server Bank Transfer Checkout
The Bank Transfer API allows you create a checkout or one time bank account to accept payment via bank transfer.
- Pass your secret key as the Bearer token in Authorization Header.
Bank Transfer Checkout
Endpoint: /banktransfer/initialize
Method: POST
Header
Param | Type | Required? | Decription |
---|---|---|---|
authorization | string | Yes | Set value to Bearer SECRET_KEY |
content-type | string | Yes | Set value to application/json |
Query Params
Param | Type | Required? | Decription |
---|---|---|---|
string | Yes | Set value to customer email | |
amount | string | Yes | Set value to checkout amount |
currency | string | Yes | Set value to checkout currency (only NGN allowed) |
reference | string | Yes | Set value to your unique reference number |
name | string | Yes | Set value to prefered name on the account |
Sample Post
curl https://api.budpay.com/api/s2s/banktransfer/initialize
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "email": "test@test.com", "amount": "100", "currency" :"NGN", "reference": "1253627873656276350", "name": "Business Name / Firstname lastname" }'
-X POST
Sample Response
{
"status": true,
"message": "Account generated successfully",
"data": {
"account_name": "Business Name / Firstname lastname",
"account_number": "1014692362",
"bank_name": "BudPay Bank"
}
}