Core API Integration
Core API Integration lets you run the entire checkout experience through direct API calls, with no redirect and no Echezona-hosted UI. You build your own payment form, collect the customer's card/transfer/USSD details yourself, and call the Core API to process and validate the payment.
Because your own UI collects and transmits raw cardholder data, this integration method requires the relevant licenses and compliance certifications before you can go live. If you don't need full control over the checkout UI, use Checkout Integration instead — Echezona's hosted page/SDK handles sensitive data for you and carries no licensing requirement. To begin the approval process, contact hello@echezona.com.
How It Works
-
Initialize the Transaction
Send a
POSTrequest toPayments/Initializeto create the transaction and receive anaccessCode. -
Get Payment Info
Call
Payments/GetPaymentInfo/{accessCode}to fetch the payment-page configuration: supported payment methods, fee breakdown, thepublicKeyused to encrypt sensitive data, and thetokenused to authenticate the remaining calls in this flow. -
Make the Payment
Collect the customer's payment details in your own UI (card, bank transfer, or USSD), then call
Payments/MakePayment. Sensitive fields (card number, CVV, PIN, expiry) must be RSA-encrypted with thepublicKeyfrom the previous step — see Data Encryption for the encryption helper. This call is authenticated with thetoken(not your API key). -
Validate the Payment
If the response requires OTP or 3DS confirmation, collect it in your UI and call
Payments/ValidatePayment. -
Confirm the Outcome
Confirm the final transaction status server-side with Fetch Transaction Status.
Mobile (React Native)
The React Native SDK's "Advanced Usage (Headless Hooks)" — useCardCheckout, useTransferCheckout, and useUssdCheckout — wrap this same Core API flow for merchants who need a custom in-app checkout experience. The licensing and compliance requirement above applies to those hooks too.
Support
If you need assistance, or want to start the approval process, reach out at hello@echezona.com.