Overview
The MercadoPago integration allows your AI assistant to generate payment links and process transactions directly within WhatsApp conversations. Customers can complete purchases without leaving the chat, creating a seamless buying experience.This is a new feature highlighted on our landing page: “Nuevo: Integración con MercadoPago”
What You Can Do
With the MercadoPago integration, RespondeIA enables:- In-chat payments: AI generates payment links automatically during sales conversations
- Payment status tracking: Real-time notifications when payments are completed
- Automatic receipts: Customers receive confirmation messages with transaction details
- Subscription management: Handle recurring payments for subscription services
- Refund processing: Process refunds directly from the dashboard
Prerequisites
Before connecting MercadoPago:MercadoPago Account
You need an active MercadoPago business account. Create one at mercadopago.com if you don’t have one.
API Credentials
Obtain your MercadoPago API credentials:
- Access Token (for production)
- Public Key (for client-side operations)
You can find these in your MercadoPago dashboard under Credentials → Production credentials.
Setup
Connect MercadoPago
Access Integration Settings
Navigate to Settings → Integrations → Payments in your RespondeIA dashboard.
Configure Webhooks
RespondeIA automatically configures webhooks to receive payment notifications:This webhook receives:
payment.created: New payment initiatedpayment.approved: Payment successfulpayment.rejected: Payment failedpayment.refunded: Refund processed
Test Mode
Before going live, test the integration:
- Enable Test Mode in integration settings
- Use MercadoPago test cards to simulate payments
- Verify webhooks are received correctly
- Check that AI sends confirmation messages
How It Works
Automatic Payment Flow
When a customer wants to make a purchase:AI-Powered Sales
The AI assistant automatically:- Detects purchase intent from customer messages
- Confirms details (product, quantity, price)
- Generates payment link with MercadoPago
- Sends link in the conversation
- Tracks payment status in real-time
- Confirms completion once payment is approved
API Integration
For custom implementations, use the RespondeIA API to create payments:Payment Tracking
Real-time Status Updates
Track payment status in real-time using webhooks:Webhook Handler Example
Query Payment Status
Check payment status programmatically:Supported Payment Methods
MercadoPago supports multiple payment methods across Latin America:Credit Cards
Visa, Mastercard, American Express, Diners Club
Debit Cards
All major debit cards in supported countries
Cash Payments
Rapipago, Pago Fácil, OXXO (Mexico), Boleto (Brazil)
Bank Transfers
PIX (Brazil), PSE (Colombia), Direct bank transfers
Pricing Plans Integration
The AI can automatically offer pricing plans based on the source code at/home/daytona/workspace/source/modules/prices/services/get-plans.ts:8-39:
Plan Offerings
Refunds
Process Refunds
Refund payments from the dashboard or API:Full refunds are processed within 10 business days. Partial refunds may take up to 30 days depending on the payment method.
Security
PCI Compliance
RespondeIA never stores credit card information. All payment data is handled by MercadoPago’s PCI-compliant infrastructure.Transaction Security
- Encrypted communication: All API calls use TLS 1.3
- Webhook verification: Signatures are validated to prevent spoofing
- Access control: Only authorized users can process refunds
- Audit logs: All payment actions are logged for compliance
Fraud Prevention
MercadoPago provides built-in fraud detection:- Device fingerprinting
- Behavioral analysis
- Transaction velocity checks
- Geographic validation
Troubleshooting
Payment Link Not Generated
Webhook Not Received
- Check webhook URL is correctly configured in MercadoPago dashboard
- Verify firewall allows POST requests from MercadoPago IPs
- Review webhook logs in RespondeIA dashboard
Payment Stuck in Pending
Analytics
Track payment performance in your dashboard:- Total revenue: Sum of all approved payments
- Conversion rate: Payment links sent vs. completed
- Average transaction value: Mean payment amount
- Payment method breakdown: Distribution by payment type
- Failed payment reasons: Why transactions are rejected
Best Practices
- Clear pricing: Train AI to communicate prices clearly before generating links
- Fast follow-up: AI should send payment links immediately when requested
- Payment reminders: Set up automatic reminders for pending payments
- Localized currency: Use the customer’s local currency when possible
- Transparent fees: Communicate any transaction fees upfront
- Receipt confirmation: Always send receipt after successful payment
Supported Countries
MercadoPago is available in:- Argentina (ARS)
- Brazil (BRL)
- Chile (CLP)
- Colombia (COP)
- Mexico (MXN)
- Peru (PEN)
- Uruguay (UYU)
Currency is automatically detected based on your MercadoPago account country.
Next Steps
Pricing Configuration
Set up your pricing plans and products
AI Training
Train your AI to handle sales conversations
API Reference
Full payment API documentation
Analytics
Track revenue and conversion metrics
