Learn how to build a customized checkout with the charge API.
Nomba Charge Sequence flow
POST
request to /checkout/order
(Create checkout order).
checkoutLink
and orderReference
are returned as part of the response body. Your orderReference
can be use to verify transaction status or start a charge process.
Once the checkout order is created, the next step is to submit the user’s card details. The customer enters their card information, which is securely processed for payment authorization. If the card details are submitted successfully, the system triggers an OTP verification to enhance security. To proceed, you need to verify the OTP to complete the payment by capturing the customer’s OTP input and validating it. If the OTP is incorrect or timeout, provide an option to resend it for verification.
If the customer prefers, they can choose to save their card information for future transactions. Before storing the card details, an additional OTP verification is required to ensure security. If the customer consents and the OTP is successfully validated, the card details are securely saved. As an alternative to card payments, customers may opt to use the Flash account option for a bank transfer. In this case, the system returns a unique Flash account number that the customer can use to complete the payment via bank transfer.
After processing the payment, it is important to verify the transaction status. Use the orderReference
to check the transaction status. If necessary, fetch transaction details from the system to provide real-time updates to the customer. In cases where the customer decides not to proceed, they can choose to cancel the checkout transaction. To do this, send a request to the cancellation API to terminate the transaction and prevent further processing.