Your First Payment
Get started with Cheqpay by processing your first test payment. This guide will walk you through a simple card payment.1
Get Your API Key
Sign up for a Cheqpay account and copy your sandbox API key from the dashboard.
2
Make Your First API Call
Create a payment with a test card:
3
Check the Response
You’ll receive a successful response with the payment details:
Understanding the Request
Let’s break down the key fields in the payment request:Required Fields
| Field | Type | Description |
|---|---|---|
externalId | string | Your unique order ID (prevents duplicate charges) |
amount | integer | Amount in the smallest currency unit (10000 = $100.00 MXN) |
currency | string | ISO currency code (MXN, USD) |
paymentMethod | object | Payment method details |
Customer Information
Card Details
What Happens Next?
When you create a payment, Cheqpay:- Creates or updates the customer record
- Tokenizes the card securely
- Authorizes the payment with the card network
- Captures the funds immediately
- Updates the status to
COMPLETED - Sends a confirmation to the customer (if enabled)
Important Notes
Amounts in Cents
Amounts in Cents
Always specify amounts in cents (minor units). For example:
- 10000 = $100.00 MXN
- 150 = $1.50 MXN
- 999999 = $9,999.99 MXN
External ID for Idempotency
External ID for Idempotency
The
externalId prevents duplicate charges. If you send the same request twice:- Successful payment → Returns existing payment (no duplicate)
- Failed payment → Creates new payment (allows retry)
Automatic Tokenization
Automatic Tokenization
Card numbers are instantly converted to secure tokens. You never need to handle raw card data on your servers.
Next Steps
Now that you’ve processed your first payment, explore more features:Save Payment Methods
Store cards for returning customers
Handle 3D Secure
Implement authentication challenges
Manage Customers
Track customer information and history
Process Refunds
Issue full or partial refunds
View Complete Testing Guide
Learn about test cards, scenarios, and going live