Appearance
Validate Payment Request
POST /api/payment/pay/validate
Checks an amount and returns the payment channels available for it.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
amount.amount | number | Yes | Transaction amount in NGN |
channels | string[] | No | Limit to these channels. Omit to get every channel enabled on your account |
Request
bash
curl --request POST \
--url https://laas.rexel.ng/api/payment/pay/validate \
--header 'X-Api: sk_test_xxx' \
--header 'content-type: application/json' \
--data '{ "amount": { "amount": 100 } }'Response
json
{
"value": {
"isValid": true,
"channels": [
{ "id": "9a69343e-c18d-4aeb-a0a2-0995b44596dc", "name": "Card", "alias": "Card", "description": null },
{ "id": "<channel-id>", "name": "PayByTransfer", "alias": "PayByTransfer", "description": null }
]
},
"isSuccess": true,
"message": "Request Successful"
}