Appearance
Pay by Bank Transfer (NGN)
Generate a dynamic virtual account for each payment. Customers pay from their banking app or USSD without a card.
- Initiate: Rexel returns a unique account number and bank.
- Customer transfers to that account.
- Webhook: Rexel notifies your server when funds arrive.
- Fulfil the order.
- Get Transaction Status (optional).
Initiate the payment
Pass PayByTransfer as the channel.
bash
curl --request POST \
--url https://laas.rexel.ng/api/payment/pay/initiate \
--header 'X-Api: sk_test_xxx' \
--header 'content-type: application/json' \
--data '{
"amount": 100,
"channel": "PayByTransfer",
"currency": "NGN",
"userInformation": {
"firstName": "Dave", "lastName": "MC",
"emailAddress": "mcdave@test.com", "phone": "0901 010 1010"
}
}'json
{
"value": {
"paymentStatus": "REQUIRE_USER_OFFLINE_ACTION",
"message": "Payment Initiated",
"paymentItem": {
"channel": "PayByTransfer",
"amount": 100,
"fees": 0,
"reference": "TVI1HLDDNATWSPG",
"paymentReference": "TVI1HLDDNATWSPG",
"metaData": {
"transfer-info": {
"bank": "Providus",
"account_number": "9934812967",
"account_name": "Sample Merchant Ltd",
"expiration": "2023-03-31T11:20:46.7104568Z",
"mode": "banktransfer"
}
}
}
},
"isSuccess": true
}Show the customer the bank, account number, account name and expiry. Keep paymentReference for status checks.
Verify status
| Status | Meaning | Do |
|---|---|---|
| SUCCESSFUL | Funds secured | Give value |
| PENDING | Awaiting bank settlement | Show "Processing" |
| FAILED | Payment rejected or expired | Offer another method |
json
{
"value": {
"paymentReference": "TVI1HLDDNATWSPG",
"amount": { "currencyCode": "NGN", "amount": 100 },
"paymentStatus": "Successfull"
},
"isSuccess": true
}Match paymentStatus case-insensitively.