Creates a hosted checkout session for a customer and returns a checkoutUrl that the customer should be redirected to in order to complete payment. The session captures the merchant intent (amount, currency, merchant reference, customer details, and allowed payment channels) and is identified end-to-end by the merchant-supplied merchantReference.
Coming soon. Not yet generally available in production, but you can test it end-to-end in sandbox/staging today. Production rollout is expected in the coming weeks.
Create a hosted checkout session for a customer. Afriex returns aDocumentation Index
Fetch the complete documentation index at: https://docs.afriex.com/llms.txt
Use this file to discover all available pages before exploring further.
checkoutUrl that you redirect the customer to so they can complete payment on Afriex’s hosted page.
merchantReference, and a redirectUrl.checkoutUrl.redirectUrl and fires a CHECKOUT_SESSION.CREATED webhook to your configured callback URL.merchantReference you supply is the end-to-end identifier. Use it to look up the session, match webhook deliveries, and reconcile any resulting transaction in your system. It must be unique per session.
amount is denominated in the smallest unit of the currency. For example, kobo for NGN or cents for USD. To charge ₦5,000.00, pass 500000. Minimum value is 100 (one major unit).Static business API key from the dashboard
The transaction amount in minor currency units (e.g. kobo for NGN, cents for USD). Minimum 100 (equivalent to 1 major currency unit).
x >= 100500000
Uppercase 3-letter ISO 4217 currency code (e.g. NGN, GHS). Must be a currency enabled for checkout sessions on the business.
"NGN"
Unique merchant-supplied reference for this session. Used end-to-end to look up the session and any resulting transaction.
1"order-2026-05-12-001"
HTTPS URL the customer is redirected to after the hosted checkout flow completes.
"https://merchant.example.com/checkout/return"
Payment channels the customer is allowed to use for this session. Defaults to [VIRTUAL_BANK_ACCOUNT] if omitted.
VIRTUAL_BANK_ACCOUNT, MOBILE_MONEY Optional flat key/value metadata to attach to the session. Both keys and values must be strings.
Checkout session created successfully.