Understand every stage of a payment.
Polling provides a snapshot. Proposed states include awaiting_payment, detected, confirming, confirmed, expired, underpaid and overpaid. A transaction seen by an RPC provider is not yet final.
Confirmation policy must be specific to each network.
Account for reorganizations and delayed provider responses.
Never use the client UI as proof of settlement.
/v1/payments/{payment_id}{
"id": "pay_demo_1048",
"status": "confirming",
"amount": "249.00",
"token": "USDC",
"network": "base",
"sandbox": true
}
Server-side authentication, input validation, wallet ownership checks, network monitoring, finality policy, signature verification and operational controls require separate implementation. Fulfill orders only from a verified backend state.