Test Mode

Test mode mirrors live mode endpoint-for-endpoint, but never moves real money. Build, demo, and run your CI against a sk_test_ key with zero risk.

Test Cards

Instead of running a full setup-session flow in development, attach a synthetic card directly to a customer:

curl -X POST https://api.ching.co.il/v1/payment_methods/test-card \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{"customer": "cus_...", "card_index": 0}'
card_indexBrandLast 4
0Visa4242
1Mastercard5555
2Amex0005

Deterministic Results

In test mode:

  • Charges always succeed.
  • Refunds always succeed.
  • Subscription first charges always succeed.
  • Setup sessions move straight to succeeded once completed - no 3DS challenge.
  • Webhooks fire for every event type, letting you test signature verification and retries end-to-end.

Going Live

To flip to live:

  1. Attach a business identity to the project.
  2. Register and get an active payment provider (Grow).
  3. Re-evaluate the live key by calling POST /v1/projects/current/activate_live_key or flipping live mode from the dashboard.
  4. Swap sk_test_ for sk_live_ in your backend.