curl --request POST \
--url https://example.com/callback \
--header 'Content-Type: application/json' \
--data '
{
"amount": "10000",
"referenceNumber": "SAMPLE-12345",
"status": "success",
"timestamp": "2021-06-17T11:34:28.608Z",
"transactionID": "12345678",
"msisdn": "255701000000"
}
'
{
"amount": "10000",
"status": true,
"referenceNumber": "SAMPLE-12345",
"statusMessage": "Payment was successful!",
"transactionID": "12345678"
}
API Reference
Receive checkout payment callback
Webhook your application must implement. After a customer completes or fails a checkout payment, Bpay POSTs the payment status to your configured callback URL. Replace the server URL with your own HTTPS endpoint.
POST
/
callback
curl --request POST \
--url https://example.com/callback \
--header 'Content-Type: application/json' \
--data '
{
"amount": "10000",
"referenceNumber": "SAMPLE-12345",
"status": "success",
"timestamp": "2021-06-17T11:34:28.608Z",
"transactionID": "12345678",
"msisdn": "255701000000"
}
'
{
"amount": "10000",
"status": true,
"referenceNumber": "SAMPLE-12345",
"statusMessage": "Payment was successful!",
"transactionID": "12345678"
}
Headers
Body
application/json
Response
200 - application/json
Acknowledge receipt of the payment status
