JCPay· Testing & Sandbox

Testing & Sandbox

Test mode routes every request through MockProvider — a sandbox that simulates the full lifecycle of a real provider (latency, webhooks, idempotency, edge cases) without moving any money.

Deterministic amounts

Use the decimal portion of the amount to drive a specific outcome in the sandbox checkout:

₱100.00 → auto-succeeds when you click Pay
₱100.01 → auto-fails when you click Pay
₱100.99 → checkout expires without action

Sandbox checkout

Every test payment's checkout_url opens a page with three buttons: Pay, Simulate failure, Let it expire. Each drives a real webhook callback, letting you exercise every branch of your integration.

Webhooks in test mode

Register separate endpoints for test and live environments in the dashboard. Deliveries are fully isolated — a test-mode event never reaches a live endpoint and vice versa.

Test keys never move money

You can generate unlimited test transactions. All ledger entries are tagged environment=test and live balances are untouched.