Insights
Payment gateway integration in LATAM: Mercado Pago, Stripe, PSE, and Wompi with custom software
Updated October 7, 2026 · 12 min read
In Mexico and Colombia, accepting online payments is no longer optional. E-commerce, subscription SaaS, marketplaces, B2B portals, and mobile apps all need to charge reliably — with cards, bank transfers, wallets, and local methods. The easy part is showing a pay button. The hard part is everything after: confirming the payment without failures, avoiding duplicate charges, reconciling against your system, handling refunds, and invoicing under local law.
This guide is for business owners, CTOs, and product leaders who want to integrate a payment gateway with commercial intent. It is not about building a fintech from scratch (we cover that in the fintech software guide): it is about connecting Mercado Pago, Stripe, Conekta, PSE, Wompi, or another gateway to a product or business that already sells. It is the approach we use at DIPA when we embed payments inside custom software.
Why integrate payments into your software (not just paste a link)
- Reliable confirmation: the order is marked “paid” only when the gateway confirms via webhook, not when the user “thinks” they paid.
- One source of truth: payment status lives next to the order, subscription, or invoice — not on a separate screen.
- Automatic reconciliation: every charge, fee, and refund matches your accounting without manual spreadsheets.
- Frictionless experience: checkout inside your brand, with the methods your customers actually use.
- Local invoicing: Mexico’s CFDI and Colombia’s DIAN e-invoicing fire from the same flow.
- Scalability: adding subscriptions, installments, or a second country does not break what already works.
A payment link or a generic plugin is fine to start. But as volume grows, you get duplicate charges, “paid” orders that were never confirmed, and hours lost reconciling by hand. That is where a custom integration pays for itself.
The gateway map in Mexico and Colombia
Mexico
Mercado Pago leads on reach and trust; Stripe and Conekta are strong for product/SaaS with solid APIs; Clip and PayU add terminals and acquiring. The distinctive feature of the Mexican market is interest-free installments (MSI — meses sin intereses): for high tickets, offering 3, 6, or 12 MSI changes conversion. You also need to solve CFDI (e-invoicing) tied to the charge.
Colombia
The key method is PSE (debit straight from the bank account), essential for many buyers. Wompi (Bancolombia group), ePayco, PayU, and Mercado Pago cover cards, PSE, and wallets like Nequi and Daviplata. DIAN e-invoicing must be issued correctly and on time. Without PSE properly integrated, you leave sales on the table.
Practical rule: do not pick the gateway by the fee on its landing page. Pick by the payment methods your customers use, API and webhook quality, subscription or split support, and country coverage if you sell in both markets.
What a serious LATAM payment integration should include
The real question is not only which payment gateway to use in LATAM, but what happens to each sale from the moment the customer tries to pay until finance can close the day. A healthy integration leaves an operational and accounting trail, not just a checkout screen.
- State model: pending, approved, declined, under review, refunded, chargeback, and expired.
- Idempotent webhooks: each event is processed once even if the gateway retries it.
- Business correlation: order, invoice, customer, subscription, or seller is linked to the payment.
- Reconciliation: fees, settlements, taxes, refunds, and differences are auditable.
- Operational fallback: support can see what failed and retry without editing the database by hand.
- Multi-country design: Mexico and Colombia can share architecture, but not always methods, invoicing, or rules.
Integration patterns that work
1. Hosted checkout — the best first step
The gateway hosts the payment screen; you redirect and receive the result via webhook. Lower PCI scope, faster to launch. Ideal for a first charge in production in 1–3 weeks for e-commerce or a one-time payment.
2. Embedded payment with tokenization (API)
The form lives in your product, but card data is tokenized on the gateway side (Elements, Bricks, or an equivalent SDK). Better experience and control, with a bounded PCI scope (SAQ A). This is the typical pattern for SaaS and apps that want their own checkout.
3. Webhooks + state machine (non-negotiable)
Payment is asynchronous: never trust the browser redirect. The truth arrives by webhook (approved, declined, under review, chargeback). You need idempotency (never process the same event twice), retries, and a clear state machine for the order or subscription.
4. Subscriptions, split, and marketplaces
Recurring charges with retry handling and expired-card recovery (dunning); split payments for marketplaces that pay out several sellers; and installments/MSI in Mexico. Each one adds rules worth modeling well from the start, not patching later.
Highest-ROI use cases in LATAM
- E-commerce / marketplace: checkout with cards, MSI (MX) and PSE (CO), plus split to sellers.
- Subscription SaaS: recurring billing, upgrades/downgrades, proration, and dunning.
- B2B portal: invoice payment via transfer/PSE and reconciliation against the ERP.
- Mobile apps: in-app charges outside the stores (services, not digital goods).
- Payment links / remote charges: for sales assisted over WhatsApp or phone.
- Collections + invoicing: issue CFDI/DIAN automatically when the payment confirms.
Common (and expensive) mistakes
- Marking the order paid on the redirect instead of waiting for the webhook → phantom orders.
- Not handling idempotency → duplicate charges or shipments when the gateway retries the webhook.
- Ignoring refunds, chargebacks, and disputes until the first one happens.
- Leaving e-invoicing (CFDI/DIAN) for the end of the project.
- Storing card data yourself instead of tokenizing → needless PCI risk.
- Not reconciling fees and settlements → accounting never matches.
- Choosing a single gateway with no plan B for downtime or low approval rates.
What a first charge costs and how long it takes
A hosted checkout with webhook confirmation and order states is usually in production in 1–3 weeks, depending on API quality, whether you need invoicing, and which local methods (MSI, PSE) you add. Subscriptions with dunning, or a marketplace with split and settlements, add several weeks for the business rules and edge cases.
Cost depends more on the logic (subscription, split, installments, multi-country, reconciliation, invoicing) than on the chosen gateway. The healthy path is to budget by milestones — discovery → first checkout in staging → production with webhooks, reconciliation, and monitoring — tied to deliverables. For regional custom-software cost ranges, see the LATAM cost guide as well.
Checklist before you integrate
- Which methods do your customers actually use? (card, MSI, PSE, transfer, wallet)
- Do you need a one-time payment, subscription, split, or installments?
- Do you sell in one country or both (MX and CO) with a single integration?
- How do you issue the invoice (CFDI/DIAN), and at what moment?
- Who reconciles fees, refunds, and settlements — by hand or automatically?
- Do you have a sandbox and a plan for handling failed webhooks?
- What happens on a chargeback or dispute, and who operates it?
- Who maintains the integration over 6–12 months (code, repos, monitoring)?
Related resources
Payment integration almost never travels alone: it usually touches your ERP, your operations, and your budget. These guides complement this read:
At DIPA Solutions we integrate payment gateways inside custom software for companies in Mexico, Colombia, and LATAM. We work API-first: connect Mercado Pago, Stripe, Conekta, PSE, or Wompi to your e-commerce, SaaS, portal, or ERP — with reliable webhooks, reconciliation, and e-invoicing, and demonstrable deliveries per flow.
Related service
Software Factory
Custom software nearshore — platforms, apps and integrations built for how teams actually use them. LATAM, US, UK and Europe.
View serviceRelated case study
TOCO
TOCO Warranty sells vehicle coverage for the modern driver. The work went beyond screens: we rebuilt the customer experience and refactored the internal stack that runs the business — Salesforce, APIs, and payment integrations — so sales, ops, and billing share one coherent flow.
View case studyFrequently asked questions
What should a LATAM payment gateway integration include?
How much does it cost to integrate a payment gateway with custom software?
Which gateway is best in Mexico and Colombia?
Why isn’t a pay button or link enough?
Do I need PCI compliance if I integrate payments?
Can you integrate payments with my ERP or e-invoicing?
Keep reading
12 min read
Restaurant and franchise software in Mexico and Colombia: a guide to digitizing operations
A practical guide for restaurants, dark kitchens, hospitality groups, and franchises connecting POS, inventory, delivery, payments, and accounting without spreadsheet workarounds.
Read article12 min read
Maintenance and field service software in Mexico and Colombia: a guide to digitizing work orders
A practical guide for companies digitizing work orders, field technicians, spare parts, warranties, and preventive maintenance without replacing the ERP or CRM.
Read article11 min read
Custom education software in LATAM: edtech development for Mexico and Colombia
A generic LMS rarely fits a school, edtech, or training team. A practical guide to building custom education software in Mexico and Colombia — use cases, standards (SCORM, xAPI, LTI), minors' data protection, and costs.
Read articleNeed to charge online without the headaches?
Tell us what you sell and which gateway you want (Mercado Pago, Stripe, PSE, Wompi, or another). We help scope the charge, reconciliation, and invoicing flow and ship a first checkout to production — first call, no commitment.