Skip to main content
A payment link is a checkout page hosted by Kori at https://pay.kori.ml/<slug>. The customer opens it, enters their mobile-money number, approves the prompt on their phone, and your balance is credited. No integration is needed on your side to take a payment. There are two ways to use one: Create the link once and share its full_url:
  • Omit amount for an open-amount link; the payer types the amount (minimum 100 XOF).
  • url_slug is optional. When you set it: 3–100 characters, lowercase letters, digits and hyphens. Omit it and one is generated from the title.
  • usage_limit caps the number of successful payments. A payment still awaiting the payer’s confirmation holds a place for up to 10 minutes, so people paying at the same moment cannot push the link past its limit.
  • expires_at closes the link at a given time.
When a payment on a link is confirmed you receive the payment_link_used webhook.

URL parameters

A bare link also accepts ?amount= (open-amount links only), ?returnUrl= and ?client_reference_id=:
These parameters travel in a URL the payer can edit. A payer can change client_reference_id to someone else’s order, or pay a different amount. Treat them as hints, never as proof. If a payment has to match one of your orders, use a checkout session.

Checkout sessions

A checkout session is one payer’s checkout on a link. Your server creates it with the amount, your reference and the return URL, and Kori keeps them. The URL carries only an unguessable token, so there is nothing in it for anyone to tamper with.
1

Create a link once

One link can serve all your sessions. An open-amount link lets each session carry its own amount.
2

Create a session per order, from your server

Response
3

Send the payer to data.url

Redirect them, or send the URL by SMS or WhatsApp. The page shows the amount locked; the payer only chooses an operator and enters their number.
4

Fulfil on the webhook

payment_link_used arrives with payment_session_id: 233 and your client_reference_id. Because both came from your server, you can match the payment to the order directly.
Create sessions from your server, never from a browser or a mobile app. The call needs your Bearer token, and that token must never be shipped to a client.

Fields

Lifecycle

A session takes one payment. While a payment on it awaits the payer’s confirmation, another attempt is refused for up to 10 minutes, so a double tap cannot send two prompts for the same order. If that attempt fails, the payer can try again straight away. Canceling stops new attempts. A payment the payer had already approved on their phone still goes through and completes the session: that money is real, and you are credited for it. Check a session at any time:
In the sandbox, session URLs point to https://pay.kori.ml/test/s/…. See Sandbox.