slikair
Back to Developer Zone

Sandbox

Testing in sandbox

Sandbox mirrors live. Use the Demo provider to simulate approvals, declines and pending states before you touch production.

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.

Sandbox credentials and the Demo provider for every transaction outcome.

CREATE A SANDBOX ACCOUNT