Developers
A straightforward, secure way to add payments.
Create payments on a trusted backend, open the returned checkout URL in the customer experience, then confirm outcomes from your backend.
1. Create
Your backend uses a test or live secret key and creates a payment that is safe to retry if the network drops.
2. Checkout
Your frontend opens the browser-safe checkout URL. No ZemaPay secret enters the bundle.
3. Confirm
Your backend verifies a signed webhook or queries the authenticated payment endpoint before fulfillment.
First request
Exact amounts and safe retries.
Send amounts as whole kobo values. When retrying the same payment request, reuse its idempotency key so ZemaPay does not create a duplicate.
POST /v1/payments/
Authorization: Bearer zmp_test_xxx
Idempotency-Key: order-10528-payment-v1
Content-Type: application/json
{
"amountKobo": "5000000",
"currency": "NGN",
"externalReference": "ORDER-10528",
"externalCustomerId": "CUS-10029",
"description": "Order #10528",
"customer": {
"name": "Leonard Nzekwe",
"email": "leonard@example.com"
},
"callbackUrl": "https://zempaa.com/orders/10528/payment"
}Server SDKs
Use zemapay for Python or @zemapay/node for Node.js and TypeScript services.
Browser SDK
Use @zemapay/checkout or @zemapay/checkout/react with the hosted URL returned by your backend.