Checkout & links
Collect payments without building your own form. A checkout session is a single-use hosted page; a payment link is a reusable, shareable URL.
POST
/v1/checkout-sessionsCreate a hosted checkout session
| Parameter | Type | Required | Description |
|---|---|---|---|
| amountMinor | integer | Yes | — |
| currency | string | Yes | — |
| description | string | No | — |
| returnUrl | string | No | — |
Request body
json
{
"amountMinor": 5000,
"currency": "GHS",
"description": "Premium subscription",
"returnUrl": "https://yourshop.com/thank-you"
}Response
json
{
"status": "ok",
"data": {
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"publicToken": "tok_982a17",
"amountMinor": 5000
}
}POST
/v1/payment-linksCreate a payment link
| Parameter | Type | Required | Description |
|---|---|---|---|
| amountMode | string | Yes | — |
| amountMinor | integer | No | — |
| minAmountMinor | integer | No | — |
| maxAmountMinor | integer | No | — |
| currency | string | Yes | — |
Request body
json
{
"amountMode": "fixed",
"amountMinor": 5000,
"minAmountMinor": 1000,
"maxAmountMinor": 100000,
"currency": "GHS"
}Response
json
{
"status": "ok",
"data": {
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"slug": "donate-to-relief"
}
}