Create a hosted checkout session
Creates a single-use hosted checkout in the API key environment. Redirect the customer to checkoutUrl. Card details are collected only by Creddot checkout; they never pass through the merchant server.
Creates a single-use hosted checkout in the API key environment. Redirect the customer to checkoutUrl. Card details are collected only by Creddot checkout; they never pass through the merchant server.
api-keyx-api-key<token>Your API key: ck_test_... for test mode, ck_live_... for live. Send it with x-api-secret (or Authorization: Bearer ).
x-api-secret?stringRecommended: API secret sent over HTTPS. You may send it as Authorization: Bearer instead. If supplied, x-timestamp and x-signature are not required.
x-timestamp?stringLegacy signed mode: Unix time in milliseconds; maximum clock skew five minutes.
x-signature?stringLegacy signed mode: HMAC-SHA256(secret, timestamp.METHOD.url.idempotencyKey.bodyHash).
x-idempotency-key*string1–128 letters/digits or ._:-. Same key and payload replay for 24 hours; conflicting, in-flight, or expired keys return 409. Never change a key to retry an uncertain payment.
application/json- body
amountMinor*stringAmount in positive integer minor units.
currency*stringreference*stringYour unique reference for this checkout.
length <= 80description?stringlength <= 160customerName?stringlength <= 120customerEmail?stringredirectUrl?stringHTTPS destination returned after successful payment.
expiresAt?stringDefaults to 30 minutes from creation.
date-timeapplication/json- response
id*stringreference*stringamountMinor*stringcurrency*stringcheckoutUrl*stringuricheckoutPath*stringexpiresAt*stringdate-timecurl -X POST 'https://api.creddot.com/api/v1/checkout/sessions' \ -H 'x-idempotency-key: string' \ -H 'Content-Type: application/json' \ -d '{ "amountMinor": "125000", "currency": "NGN", "reference": "ORDER-10042"}'{ "id": "string", "reference": "string", "amountMinor": "string", "currency": "string", "checkoutUrl": "http://example.com", "checkoutPath": "string", "expiresAt": "2019-08-24T14:15:22Z"}Validate a bill customer POST
Validates a meter, smartcard, internet account, or phone number with the selected provider before payment.
Get a hosted checkout session GET
Requires collections:create. Use on your return page or after a webhook to confirm the order is paid: status PAID means a payment succeeded. Scoped to the API key merchant and environment.