Session states
Server types mirror the REST API. Commonstatus values include:
pending— created, not yet confirmed on-chainconfirmed— settled and verifiedexpired— session TTL elapsedcancelled— cancelled via API (only pending sessions)
unseen.payments.get(id) or list filters to observe state from the server.
Verification
payments.verify(paymentId) (server SDK) or the UI’s polling flow returns a result whose status can include:
confirmedpendingamount_mismatch— amount on-chain does not match the session (treat as failure / manual review)
Fulfillment checklist
- Treat idempotency: the same payment ID or reference may be observed more than once (retries, webhook + client).
- Prefer webhooks + verify together: webhook for push, verify for manual recovery.
- Store
referenceas your internal order or invoice key.
