Set up
- Register a sandbox account and issue a sandbox merchant-token.
- Point the base URL at the sandbox environment through configuration.
- Enable the Demo provider for the methods you plan to test.
Simulate outcomes
- Approval: confirm the 200 notification and your fulfilment path.
- Decline: confirm 500 (provider declined) and 302 (risk decision) are surfaced to the consumer clearly.
- Pending: confirm the order stays open and resolves when the later notification arrives.
Status polling
- Call get-status with the same request_id and compare it to the notification.
- Verify polling is a fallback only and does not double-process an order.
Webhook validation
- Replay the same notification twice and confirm the second one is a no-op.
- Return a non-2xx once and confirm the retry is handled cleanly.
- Log unknown reason codes instead of failing the handler.