CartirraAPI
Get API keys

Getting started

Test mode

Build and test your integration with test keys. Payments, refunds and payouts are simulated; no real money moves.

Everything you do with a sk_test_ key happens in test mode. It runs the same code paths as live mode, with simulated money movements, so what works in test works in live.

What's simulated

FlowIn test mode
Shopper paymentsThe widget offers a simulated payment instead of a real transfer or card charge.
RefundsComplete without calling a payment provider.
PayoutsSimulated; a withdrawal completes after about a minute.
DepositsNothing to pay: you simulate the deposit instead.
WebhooksDelivered for real to your test endpoint, signed with its own secret.

Separate data

Test and live data are completely separate. Orders, customers, payments, balances and events created in test mode never appear in live mode, and the other way round. Ids look the same in both modes, so a test id simply returns 404 with a live key.

A test checklist

Before going live, run each of these in test mode:

  1. Create a checkout session and complete a simulated payment.
  2. Receive order.created and payment.succeeded, and check your signature verification.
  3. Retry a create with the same Idempotency-Key and confirm you get the same response.
  4. Refund part of an order, then the rest, and receive refund.succeeded.
  5. Page through GET /v1/orders with limit and cursor.
  6. Handle a 400 VALIDATION_FAILED, a 404 NOT_FOUND and a 429 RATE_LIMITED.

The Try it panel in this reference only accepts test secret keys, so you can explore safely from the docs.