/process/
endpoint with operation_type: "payment"
.
Here are the payment methods supported by Tonder:
Method | Type Value | Description | Processing Time |
---|---|---|---|
Cards | CARD | Credit and debit cards | Instant |
SPEI | SPEI | Mexican bank transfers | Real-time |
OXXO | OXXO | Cash payments at OXXO stores | 24-48 hours |
Mercado Pago | MERCADOPAGO | Digital wallet | Instant |
SafetyPay | SAFETYPAY | Alternative cash payment | 24-48 hours |
Process Card Payments
Card payments support major credit and debit cards including Visa, Mastercard, and American Express. Cards can be processed using either raw card data or tokenized card information.Send Card Payment Request
Send Card Payment Request
Here’s an example of a card payment request using a tokenized card (recommended):Where:
Must be
"CARD"
Card number (raw or tokenized)
Cardholder name (raw or tokenized)
Security code (raw or tokenized)
Expiration month (raw or tokenized)
Expiration year (raw or tokenized)
URL for 3DS redirects
3D Secure Handling
3D Secure Handling
Some card transactions may require 3D Secure authentication. When this occurs, the response will include a
next_action
object:3D Secure Flow
3D Secure Flow
This is the usual flow of 3D Secure payments:
- Redirect customer to the provided URL
- Complete 3DS authentication
- Redirect customer back to your
return_url
- Check transaction status using the
verify_transaction_status_url
or the main status endpoint
Status Flow
Status Flow
Status | Description |
---|---|
pending | Processing |
authorized | Payment authorised (capturable) |
success | Payment completed |
SPEI Bank Transfers
SPEI (Sistema de Pagos Electrónicos Interbancarios) enables real-time bank transfers within Mexico. SPEI payments are processed immediately during business hours.SPEI Payment Request
SPEI Payment Request
SPEI Operating Hours
There are two operating hours for SPEI:General Availability
- 24 hours a day, 7 days a week, 365 days a year
- Includes weekends and official bank holidays
- All times in Mexico City time (CT)
Same-Day Processing
- Most transfers are processed in real-time, regardless of time or date
- No cut-off time applies for same-day settlement
Bank and Platform Considerations
Some banks or payment providers may apply their own internal processing schedules or restrictions Possible delays may occur due to:- Scheduled maintenance windows
- Anti-fraud validations
- Institutional batch processing policies
Status Flow
These are the statuses that can be returned by the SPEI payment method:Status | Description |
---|---|
pending | Awaiting bank processing |
processing | Bank transfer in progress |
success | Transfer completed |
OXXO Cash Payments
OXXO is Mexico’s largest convenience store chain. Customers receive a payment voucher that can be paid at any OXXO location with cash.OXXO Payment Request
OXXO Payment Request
OXXO Payment Response
OXXO Payment Response
The response includes payment instructions for the customer:
OXXO Payment Process
The process for OXXO cash payments is the following:- Customer gets the payment voucher (with barcode and reference code).
- Customer pops into any OXXO shop.
- They show the barcode at the till and pay the exact amount in cash.
- OXXO processes the payment and issues a receipt.
- Tonder sends a webhook to confirm the payment status.
Status | Description |
---|---|
pending | Awaiting customer payment |
success | Cash payment received and confirmed |
Mercado Pago Digital Wallet
Mercado Pago is a popular digital wallet across Latin America, offering instant payment processing with broad customer adoption.Mercado Pago Payment Request
Mercado Pago Payment Request
SafetyPay Cash Payments
SafetyPay provides alternative cash payment methods across Latin America, supporting various local payment options.SafetyPay Payment Request
SafetyPay Payment Request
Here’s an example of a SafetyPay payment request:Where:
Must be
"SAFETYPAY"
Status | Description |
---|---|
pending | Awaiting customer payment |
success | Cash payment received and confirmed |
Payment Method Selection Guidelines
Here are some guidelines for selecting the best payment method for your use case:For E-commerce
For E-commerce
- Cards: Best for immediate payment confirmation
- SPEI: Good for higher-value transactions
- Digital Wallets: Popular among younger demographics
For Cash Payments
For Cash Payments
- OXXO: Ideal for customers without bank accounts
- SafetyPay: Alternative for regions without OXXO coverage
For B2B Transactions
For B2B Transactions
- SPEI: Preferred for business-to-business payments
- Cards: Good for smaller business purchases
Implementation Examples
Here are some examples of how to implement payment methods in your application:Error Scenarios
The following tables show the common payment errors and method-specific errors.Common Payment Errors
Error Code | Description | Solution |
---|---|---|
card_declined | Card declined by issuer | Try different card |
insufficient_funds | Not enough funds | Try different payment method |
expired_card | Card has expired | Use valid card |
invalid_card | Card number invalid | Check card details |
processing_error | Temporary processing error | Retry request |
Method-Specific Errors
Payment Method | Error Code | Description |
---|---|---|
SPEI | spei_unavailable | Outside operating hours |
SPEI | invalid_amount | Amount exceeds SPEI limits |
OXXO | amount_too_high | Exceeds OXXO payment limits |
OXXO | amount_too_low | Below minimum payment amount |
Best Practices
Following are the best practices for implementing payment methods.Payment Method Selection
Payment Method Selection
- Offer multiple payment options so customers can choose their preferred method.
- Consider demographic differences, as younger users often want digital and older users may prefer cash.
- Research regional payment preferences for each market you serve.
- Use bank transfers for higher transaction amounts.
Implementation
Implementation
- Handle async payments by using webhooks for status updates.
- Implement retry logic to recover from temporary network issues.
- Validate all input data before sending requests.
- Test thoroughly in the sandbox environment before going live.
Customer Experience
Customer Experience
- Provide clear instructions for cash payment methods.
- Send status updates to keep customers informed about their payment.
- Offer fallback options if a customer’s first choice fails.
- Optimise the payment flow for mobile devices.