PayIn Flow
This section describes the key steps, statuses, and notes for payment collection.
Flow overview
- Merchant creates and pays the order
- Platform returns a payment action (redirect/QR, etc.)
- User completes payment
- Platform notifies the merchant of the result
- Merchant actively queries to confirm the final state if needed
Key statuses
| Status | Meaning | Handling |
|---|---|---|
USER_PAYING | User is paying | Show pending state and wait for callback |
SUCCESS | Payment succeeded | Deliver goods or entitlements |
FAIL | Payment failed | Show reason or guide retry |
Callbacks and queries
- Callbacks trigger only on terminal success; verify signature and handle idempotency.
- If no callback arrives or status is unclear, query actively.
Common scenarios
- Redirect: Use
action.urlto redirect the user to complete payment. - QR: Use
action.qrContentto display QR content.