Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.ligdicash.com/llms.txt

Use this file to discover all available pages before exploring further.

With direct payin, the operator decides how the customer confirms their payment. This mechanism is called the validation mode. It defines the exact flow you must implement on the interface side: when to collect an OTP, when to display a waiting message, when to submit a second request, or when to redirect the customer to an external page. These six modes are independent. Each operator uses one (sometimes two with a fallback). You only implement the mode matching the operator you are integrating. See the operator-specific pages to know which mode applies.
All modes use the same endpoint POST /pay/v01/straight/checkout-invoice/create. The difference is on the UX and flow side: whether to collect an OTP, show a waiting message, redirect to a URL returned in response_text. Do not confuse this with hosted payin, which uses a distinct endpoint (/redirect/...) and exposes a LigdiCash multi-operator payment page.

Details of each mode

The customer generates an OTP by dialing a USSD code on their phone, before you call the API. You collect the number and the OTP at the same time in your form, then submit a single request with both.Flow:
1

The customer dials the USSD code

Before filling out your form, the customer dials their operator’s USSD code on their phone (e.g. *144*4*6# for Orange Burkina Faso). A one-time OTP appears on their screen.
2

The customer enters their information

Your form collects the phone number and the OTP at the same time.
3

You submit the API request

A single request with the number in customer and the OTP in otp. No second call needed.
4

Confirmation by callback

LigdiCash notifies you of the result via your callback_url.
Recommended UX: show the USSD code to dial with clear instructions before the customer fills out the form.
The OTP generated via USSD has a short validity period. Encourage the customer to enter their OTP immediately after generating it.
Operators using this mode: Orange Burkina Faso.

Summary

ModeAPI requestsOTP collectedWhat the customer does
USSD OTP1Before calling the API (via USSD)Dials a USSD, shares the OTP with the merchant
USSD Push1NoneValidates on the USSD push received
Guided USSD1NoneDials a USSD after receiving an SMS
SMS OTP2After the first API request (via SMS)Receives an OTP by SMS, shares it with the merchant
LigdiCash redirect1NoneIs redirected to a pre-filtered LigdiCash page and confirms there
Operator redirect1NoneIs redirected to the operator’s portal and confirms there
To know the validation mode of each operator, see its dedicated page in the Integration by operator section.