With environments aligned, the last conceptual piece is what happens to one session over time. That shapes how you fulfil orders—before you memorize individual SDK calls in the next section.Documentation Index
Fetch the complete documentation index at: https://docs.unseen.finance/llms.txt
Use this file to discover all available pages before exploring further.
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.
