Skip to main content

Checkout Sessions

A Checkout Session creates a hosted payment page with a shareable URL. The customer visits the URL, selects their mobile money operator, enters their phone number, and confirms the payment.

Two Modes

  1. Items mode — Pass a list of line items with quantities and unit prices
  2. Amount mode — Pass a fixed total amount
You must provide either items or amount, but not both.

Expiration

Sessions expire after 30 minutes by default. Use expiresInMinutes (5-1440) to customize.

Endpoints

MethodPathDescription
POST/v1/checkout/sessionsCreate a session
GET/v1/checkout/sessions/{id}Get a session
GET/v1/checkout/sessionsList sessions
POST/v1/checkout/sessions/{id}/expireExpire a session