The Request to Pay Checkout is a managed OneKhusa service that simplifies the checkout process for accepting payments to be made by third party systems supported by request-to-pay feature. In order to accept payments through the managed checkout page, the process is as follows:
Let’s implement the checkout flow to start accepting payments from your customers:
This step allows your application initiates the payment request and waits for the successful response to redirect to OneKhusa hosted checkout service.
paymentTransactionId is a placeholder for the actual value received from payment response.
Figure 1: Request To Pay Checkout
Your initiated payment transaction will be displayed as illustrated in figure 1 above and follow the instructions to pay through the supported banks and mobile money wallets on OneKhusa. Once payment is successful and received, you will be redirected automatically to your application.
Bearer authentication header of the form Bearer Token, Where accessToken is the access token used to authenticate the request.
A unique key to ensure idempotent requests
Successful initiation of checkout request
Unique reference number provided in the request.
"SRN123456789"
Merchant account used for the transaction.
12345678
Generated transaction ID used for redirecting to checkout.
"GENERATED_TRANSACTION_ID"