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_index | Brand | Last 4 |
|---|---|---|
0 | Visa | 4242 |
1 | Mastercard | 5555 |
2 | Amex | 0005 |
Deterministic Results
In test mode:
- Charges always succeed.
- Refunds always succeed.
- Subscription first charges always succeed.
- Setup sessions move straight to
succeededonce 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:
- Attach a business identity to the project.
- Register and get an active payment provider (Grow).
- Re-evaluate the live key by calling
POST /v1/projects/current/activate_live_keyor flipping live mode from the dashboard. - Swap
sk_test_forsk_live_in your backend.