Payment Confirmation
After the account validation has successfully responded with the account details. You can proceed to confirm the payment for the service
We recommend checking out the Getting Started section to understand the basics of service payments first and the general workflow. This guide assumes that you have read that
Step 1: Setup the payment confirmation request
The table below describes the request parameters that are used for the payment confirmation request.
internal_reference
String
true
The internal reference returned as part of the validation response
secret_code
String
false
This one is a special parameter that applies to Airtel Money Withdraw transactions. The customer secret code should be Base64 encoded before sending the API request.
Prepare your request payload as demonstrated below.
POST
https://gwapisdbx.ellypayapp.com/service-payments/process-payment
The request is sent as a JSON body as demonstrated by the sample request below. Sample responses (acknowledgement and failure) are also shared.
Step 2: Handle final status notification
Every merchant account is expected to have configured a callback/webhook URL for service payments. For all transactions that transition to the final state (COMPLETED or FAILED), a JSON POST request will be made to the callback URL. Sample callback payloads (request bodies) are shared below. Be sure to check out Handling Notifications to see how you should verify the signature(s) in the request headers and how to respond.
In some situations, the payload.additional_details
parameter will hold extra details about the payment e.g. the YAKA token etc. The table below decribes some of the expected parameters in the additional_details object.
token
String
The YAKA token. Only returned on YAKA payments
units
Number
The total units purchased. Usually returned on YAKA payments
receipt_number
String
The payment receipt. Usually returned on utility or tax payments
description
String
Description of the payment. This usually applies to all service payments
debt_recovery
String
Usually returns on YAKA payments
fuel
String
Usually returns on YAKA payments
inflation
String
Usually returns on YAKA payments
tax
String
Usually returns on YAKA payments
customer_phone
String
Usually returns on utility, tax and digital TV payments
Last updated