TheDocumentation Index
Fetch the complete documentation index at: https://developers.ligdicash.com/llms.txt
Use this file to discover all available pages before exploring further.
confirm endpoint is the same as for hosted payin. The difference is when you call it: without a redirect, there is no return_url to trigger a verification from the frontend. You must wait for the callback — it is the signal that the operator has finished processing.
When to call confirm
Always when the callback is received. Whatever the validation mode, the operator’s confirmation can take a variable amount of time — from a few seconds to several minutes, even when the customer has already entered their OTP. The callback is the only reliable signal that the operator has processed the transaction.
Call confirm from your callback handler, with the token stored at creation, before fulfilling the order.
Request example
status values
status | Meaning | Recommended action |
|---|---|---|
completed | Payment confirmed | Fulfill the order |
pending | Awaiting customer validation | Continue polling or wait for the callback |
notcompleted | Payment did not go through | Offer to retry |
Polling — safety net only
If the callback is delayed or unavailable in your environment, you can pollconfirm at regular intervals. The status will be pending until the operator has finalized the transaction:
JavaScript
Polling is a safety net, not a replacement for the callback. Always base your business logic on the callback. See Polling vs callback for trade-offs.
Related pages
- Verify the status — full reference — detailed response fields and real payloads
- Validation modes — when the status becomes
pending - Callback — security — why always re-verify with
confirm - Polling vs callback — choosing the right strategy
