Documentation Index
Fetch the complete documentation index at: https://docs.clickpesa.com/llms.txt
Use this file to discover all available pages before exploring further.
- Quick & Flexible – Generate Hosted Checkout links with minimal API calls and seamlessly integrate them across platforms.
- Secure & User-Friendly – Designed for a secured seamless experience for developers and users.
Prerequisites
- Hosted Application - Create an application and generate Client ID and API Keys for Hosted Checkout
- Authorization Token - Use API Keys of to Generate Authorization Token
How It Works
Generate Hosted Checkout Link
Use this API endpoint to generate a Hosted Checkout Link
Payment notifications
When a customer completes payment on the hosted checkout page (including mobile push payments), you can receive status updates in three ways:- Application webhooks — Configure
PAYMENT RECEIVED(andPAYMENT FAILEDif needed) under your hosted application in the dashboard. callbackUrlon the generate link request — Optional field on Generate Checkout Link. ClickPesa sends an HTTP POST to this URL when a payment for that link succeeds.- Query Payment API — Poll by your
orderReference.
After payment, customers are redirected to the Return URL on your hosted application in the dashboard. That redirect is not set on the generate link request.

