Appearance
Initiate Payment Request
POST /api/payment/pay/initiate
Starts a card or bank-transfer payment, either standalone or for a payment link.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Amount to charge |
channel | string | Yes | Card or PayByTransfer |
currency | string | Yes | NGN |
narration | string | No | Description of what is being bought |
reference | string | No | Your unique reference |
link.alias | string | Payment links only | Alias of the payment link being paid |
userInformation.firstName | string | Yes | Customer first name |
userInformation.lastName | string | Yes | Customer last name |
userInformation.emailAddress | string | Yes | Customer email |
userInformation.phone | string | Yes | Customer phone |
paymentRequestProps.card | object | Card only | number, cvv, expMonth, expYear |
metaData | object | No | Extra data stored with the transaction |
Request
json
{
"amount": 100,
"channel": "PayByTransfer",
"currency": "NGN",
"link": { "alias": "0-k2tmbuy" },
"userInformation": {
"firstName": "Dave", "lastName": "MC",
"emailAddress": "mcdave@test.com", "phone": "0901 010 1010"
}
}json
{
"amount": 100,
"channel": "Card",
"currency": "NGN",
"narration": "Order 123",
"userInformation": {
"firstName": "Dave", "lastName": "MC",
"emailAddress": "mcdave@test.com", "phone": "070 0000 0000"
},
"paymentRequestProps": {
"card": { "number": "4242424242424242", "cvv": "123", "expMonth": 6, "expYear": 2027 }
},
"metaData": { "orderId": "123" }
}Responses
json
{
"value": {
"paymentStatus": "REQUIRE_USER_OFFLINE_ACTION",
"message": "Payment Initiated",
"bankAuthURL": null,
"paymentItem": {
"channel": "PayByTransfer",
"amount": 500,
"fees": 0,
"reference": "4f737265-27cb-40fd-84a6-f41d999a39d1",
"metaData": {
"transfer-info": {
"bank": "Providus",
"account_number": "9979314914",
"account_name": "SAMPLE MERCHANT LTD",
"expiration": "2023-03-04T13:43:11.0447022Z",
"mode": "banktransfer"
}
}
}
},
"isSuccess": true
}json
{
"value": {
"paymentStatus": "INITIATED",
"message": "Payment Initiated Successfully",
"bankAuthURL": null,
"paymentItem": {
"channel": "Card",
"amount": 100,
"fees": 0,
"reference": "THGUJYNHACLVSPG",
"paymentReference": "THGUJYNHACLVSPG",
"metaData": {}
}
},
"isSuccess": true
}