Overview
Card payments use hosted checkout. Simply redirect the user to thepayment_url from the API response, and card input through 3D Secure authentication is handled automatically.
Payment Flow
1
Create Payment
Call
POST /v1/payments to create a payment and obtain payment_url2
Redirect
Redirect user to
payment_url3
Payment Complete
After payment, user is automatically redirected to your configured
success_redirect_url or failure_redirect_urlImplementation Example
Authorization & Capture
For two-step payments (authorize first, capture later):Test Cards
| Card Number | Description |
|---|---|
| 4242424242424242 | Successful payment |
| 4000002500003155 | Requires 3D Secure |
| 4000000000000002 | Declined |
| 4000000000000259 | Chargeback |
| 4000000000009995 | Insufficient funds |
| 4000000000009987 | Lost card |
| 4000000000009979 | Stolen card |
| 4000000000000069 | Expired card |
| 4000000000000127 | Incorrect CVC |
| 4000000000000119 | Processing error |
For complete API parameters and response details, see the Create Payment API reference.