Skip to content

Pay by Bank Transfer (NGN) ​

Generate a dynamic virtual account for each payment. Customers pay from their banking app or USSD without a card.

  1. Initiate: Rexel returns a unique account number and bank.
  2. Customer transfers to that account.
  3. Webhook: Rexel notifies your server when funds arrive.
  4. Fulfil the order.
  5. 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 ​

StatusMeaningDo
SUCCESSFULFunds securedGive value
PENDINGAwaiting bank settlementShow "Processing"
FAILEDPayment rejected or expiredOffer another method
json
{
  "value": {
    "paymentReference": "TVI1HLDDNATWSPG",
    "amount": { "currencyCode": "NGN", "amount": 100 },
    "paymentStatus": "Successfull"
  },
  "isSuccess": true
}

Match paymentStatus case-insensitively.

Rexel Limited