Visa, Mastercard and American Express cards run through the same payments, hosted checkout and webhooks as crypto, so your integration uses the same payment statuses for both. To accept them:
- Enable cards in Settings, under Payments.
- Create a payment or a payment link.
- Send your customer to its URL.
At checkout
- Checkout opens a secure payment page, where the customer reviews the total and completes any required identity checks.
- Card details are entered there and are never sent to your integration.
- Available payment methods depend on the customer's location and the payment amount.
- Checkout updates automatically and takes the customer to their receipt or your success page.
Payment attempts
Checkout handles unsuccessful attempts and offers another try when available. Use payment.failed and failure_code to handle a payment that couldn't complete.
A card approval alone doesn't mean the payment is complete. Fulfill the order after your server receives and verifies payment.succeeded, then reads the payment to confirm its status and amount.
Deposit
- You receive the payment in a supported coin and network.
- Its
settlementfield records the destination, amount and transaction. - Its
method.railiscardwhether the customer paid by card, Apple Pay or Google Pay. - Fees are recorded on your fee statement.
Failure codes
| Code | Meaning |
|---|---|
region_unsupported | Card payments are unavailable in the customer's region. |
route_timeout | The card payment did not complete in time. |
Next steps
- Everything between choosing how to pay and the receipt, on one hosted page.
- Keep one payment per order, map each status to the order, and ship exactly once.
- Send refunds from your wallet, return funds you don't accept, and keep disputes rare.
- What 402pay costs, how fees accrue and are collected, and how to read your fee statement.