Accept Card Payments
Accept card payments in a single API request. Process credit and debit cards from Visa, Mastercard, and American Express through a unified checkout experience.Create a Card Payment
Complete Request Example
Successful Response
What Happens During Payment
1
Customer Created or Updated
Cheqpay creates a new customer record or updates an existing one based on the
externalId.2
Card Tokenized
The card is securely tokenized. Sensitive data never touches your servers.
3
Authorization
The payment is authorized by the card network (Visa, Mastercard, Amex).
4
Funds Captured
Funds are captured immediately upon successful authorization.
5
Status Updated
Payment status updates to
COMPLETED and you can fulfill the order.6
Customer Notified
Customer receives a confirmation email (if notifications are enabled).
Card Surcharge
Merchants enrolled in the surcharge program can pass the card processing fee on to the cardholder. When active, the payment order’s total is increased by the surcharge and satisfies:- The surcharge is configured at the merchant level in Cheqpay Suite: a percentage
rateapplied over the order subtotal, with an optional per-transaction cap. The program must be enabled for your account by Cheqpay and switched on by you. - It applies to card payments only — SPEI and cash methods are never surcharged; if the customer pays an order with a non-card method, the order is charged at the subtotal with no surcharge.
- By default it applies to credit cards and American Express only (debit cards are not surcharged). An “all cards” mode is available on request.
- Because the card type is only known when the customer presents the card, the surcharge is computed per charge attempt, and the order
amountis re-derived at that point. - The applied values are returned on the payment order object as
surchargeAmountandsurchargeRate(the rate is a snapshot of your configuration at charge time), and a payer-facing line-item label can be configured.
If your integration validates order totals, always compare against
subtotalAmount for your merchandise total and treat amount as subtotalAmount + surchargeAmount — a card charge may legitimately exceed the subtotal you requested.Required Fields
Payment Information
Customer Information
Card Details
Billing Address (Required)
Billing address is required for all card payments:Save Cards for Future Use
Enable one-click checkout by saving the card:paymentMethodId you can use for future charges:
Learn More About Saved Cards
View complete payment methods documentation
Charge a Saved Card
Use a previously saved card with just the payment method ID:Handle Authentication (3D Secure)
Some payments require 3D Secure authentication. When this happens, the status will bePAYER_AUTHENTICATION_CHALLENGE_REQUIRED:
Complete 3D Secure Guide
Learn how to implement 3D Secure authentication
Improve Approval Rates
Include Device Information
Sending device data helps banks assess risk and approve more payments:Best Practices
Include Billing Address
Include Billing Address
Billing address verification helps prevent fraud and improves approval rates by 3-5%.
Send Device Data
Send Device Data
Device information enables better fraud detection and smoother 3D Secure flows.
Use Consistent Customer Data
Use Consistent Customer Data
Keep customer information consistent across payments for better approval rates.
Save Payment Methods
Save Payment Methods
Returning customers with saved cards have higher approval rates.
Error Handling
Handle declined payments gracefully:Error Handling Guide
Learn how to handle errors and declined payments
Testing
Use these test cards in sandbox:Complete Testing Guide
View all test scenarios and cards
Next Steps
Handle 3D Secure
Implement card authentication
Save Payment Methods
Store cards for returning customers
Process Refunds
Issue full or partial refunds
Set Up Webhooks
Get real-time payment notifications