confirm endpoint.
Prerequisites
- Your
ApikeyandAPI_TOKENavailable in your LigdiCash dashboard - A
callback_urlpublicly reachable from the internet (notlocalhost)
To expose a local server during development, you can use a tool like ngrok.
Step 1 — Create the transaction
Call the create endpoint, passing yourtransaction_id in custom_data. Store the returned token — you will need it in step 4.
response_text:
Step 2 — Redirect the customer
The payment URL is inresponse_text. Open it in the same tab or a new tab — never in an iframe.
Node.js
return_url or cancel_url.
Step 3 — Receive the callback
LigdiCash sends a POST request to yourcallback_url when the transaction status changes.
Node.js (Express)
Step 4 — Verify with confirm
Never trust the callback payload alone. Callconfirm with the token stored at creation to validate the status.
What’s next?
Your first payment works. To go further:Direct payin
Initiate the payment directly from your interface, without leaving your app.
Secure the callback
The complete pattern for re-verification and deduplication.
Payout
Send transfers to your customers or partners.
All operators
Orange Money, Moov, MTN, Wave, and more.
