Mock Payment Gateway & Hosted Checkout
Simulate realistic payment flows with 100% Stripe parity. Test deterministic card outcomes (instant success, declines, insufficient funds, card expired), 3D Secure modal challenges, payment intents, refunds, and hosted checkout sessions with automated receipt email delivery.
Live Interactive Payment Studio
Try direct charges, flip the 3D card preview, test 3D Secure authentication challenges, create hosted checkout sessions, and issue refunds directly in your browser.
Deterministic Card Numbers
Test 8+ dedicated card numbers triggering instant success, insufficient funds (402), generic decline, expired cards, 3DS authentication, and 500 processing errors.
3D Secure 2.0 Challenge Flow
Full support for requires_action state with interactive authorization challenge modal and confirm-3ds endpoint.
Automatic Inbox Receipt Email
When receipt_email is provided, an itemized HTML invoice receipt is dispatched to your virtual Sandbox Inbox (/docs/inbox).
TypeScript SDK & API Integration
1. Direct 1-Step Payment Charge
2. 3D Secure Verification Challenge
3. Hosted Checkout Session Creation
4. Issuing Full or Partial Refunds
5. cURL Direct Request
Payment & Checkout Endpoints Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/payments/charge | Direct 1-step charge helper (creates & confirms intent). |
| POST | /api/v1/payments/intents | Create new payment intent (requires_payment_method). |
| POST | /api/v1/payments/intents/:id/confirm | Confirm payment intent with test card credentials. |
| POST | /api/v1/payments/intents/:id/confirm-3ds | Authorize and complete 3D Secure verification challenge. |
| POST | /api/v1/payments/intents/:id/cancel | Cancel uncaptured or pending payment intent. |
| GET | /api/v1/payments/intents | List all sandbox payment intents. |
| GET | /api/v1/payments/intents/:id | Get single payment intent by ID. |
| POST | /api/v1/payments/refunds | Issue full or partial refund for succeeded payment. |
| POST | /api/v1/checkout/sessions | Create hosted checkout session with line items. |
| POST | /api/v1/checkout/sessions/:id/complete | Simulate customer checkout submission & payment. |
| POST | /api/v1/customers | Create mock customer profile. |