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
- USSD OTP
- USSD Push
- Guided USSD
- SMS OTP
- LigdiCash redirect
- Operator redirect
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:Recommended UX: show the USSD code to dial with clear instructions before the customer fills out the form.Operators using this mode: Orange Burkina Faso.
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.The OTP generated via USSD has a short validity period. Encourage the customer to enter their OTP immediately after generating it.
Summary
To know the validation mode of each operator, see its dedicated page in the Integration by operator section.
