On this page
- The main gateways in Latin America and beyond
- How to choose a provider
- Security through the provider
- Webhooks: the part that makes payments reliable
- Installments and payment options
- Reconciliation
- Checkout experience
- Common mistakes
- Integration roadmap for a custom store
- Frequently asked questions
- Which payment gateway is best for my online store?
- Is it safe to accept cards on my own website?
- What is a webhook in payments?
- Can I offer installments?
- How do I reconcile payments with orders?
To integrate Mercado Pago, Stripe or another payment gateway into a custom online store, you need more than a "Pay now" button. You need a clear choice of provider, a reliable way to confirm payments, a process to reconcile money with orders, and security handled by the right party. This guide covers the decisions that matter and the mistakes that cost the most.
The main gateways in Latin America and beyond
Each provider has a different strength, and many stores use more than one.
| Provider | Typically known for |
|---|---|
| Mercado Pago | Wide adoption across Latin America, local payment methods and a familiar checkout for buyers |
| Stripe | Developer-friendly tools, strong subscription and international card support |
| PayPal | Buyer recognition, especially for cross-border purchases |
| Clip | Card payments, popular with merchants who also use physical terminals |
| OpenPay | Card processing and local payment methods in Mexico and Colombia |
| Conekta | Card, cash voucher and bank transfer options in Mexico |
Availability, supported countries, fees and payment methods change over time, so confirm the current details with each provider before deciding. The right mix depends on where your customers live and how they prefer to pay.
How to choose a provider
Use these criteria instead of looking only at the headline fee:
- Countries and currencies. Does it accept your customers' cards and settle in your currency?
- Payment methods. Cards, bank transfer, cash vouchers, wallets, installments.
- Total cost. Transaction fees, fixed fees, currency conversion and chargeback charges.
- Settlement time. How many days until funds reach your account.
- Fraud tools. Built-in screening and clear dispute handling.
- Documentation and API quality. This directly affects integration cost and reliability.
- Reporting. Can you export clean data for reconciliation?
- Support. Who answers when a payment fails on a busy day?
Security through the provider
Your store should never handle raw card data if it can avoid it. The standard approach is to let the provider collect card details through its hosted fields, redirect or SDK, and return a token or payment identifier to your system.
- This keeps most of the compliance burden with the provider.
- Your server stores only references, such as a payment ID, not card numbers.
- Always use HTTPS, protect your API keys and keep them out of front-end code.
- Use separate test and production credentials and rotate keys when staff change.
Webhooks: the part that makes payments reliable
A customer can close the browser after paying, lose connection, or return before the bank responds. If your store relies only on the page the customer sees after payment, orders will go wrong. The solution is the webhook: a notification the provider sends to your server when a payment changes state.
Good webhook handling means:
- Verify the signature so you know the notification is genuine.
- Be idempotent. The same event may arrive more than once; processing it twice must not create two orders or two shipments.
- Respond quickly and process heavy work in the background.
- Handle every state: approved, pending, rejected, refunded, charged back.
- Keep a log of events for support and audits.
- Reconcile periodically by querying the provider, in case a notification is lost.
Installments and payment options
In several Latin American markets, buyers expect to pay in installments. Availability depends on the provider, the card issuer and the country. Decide who absorbs the financing cost, you or the buyer, and show the final amount clearly before payment. Misleading price presentation is a common reason for abandoned carts and disputes.
Reconciliation
Reconciliation means matching what customers paid, what the provider settled to your bank and what your accounting recorded.
- Store the provider's payment ID on every order.
- Record fees and the net amount, not just the gross sale.
- Match settlement reports to orders, including refunds and chargebacks.
- Flag differences automatically instead of finding them at month-end.
- Connect the store to your ERP (page in Spanish) so accounting receives clean entries. See also our comparison of custom ERP and packaged ERP.
Checkout experience
Payment conversion depends on friction. Keep the checkout short, show accepted payment methods early, confirm the total including shipping and taxes before the final click, and give clear messages when a card is declined so the customer can try another method. Support mobile devices well, since many buyers pay from a phone. Send an order confirmation immediately and keep the customer informed while a pending payment is awaiting confirmation. Do not forget invoicing: if your customers need a tax document, collect the data before payment and issue it according to your country's rules.
Common mistakes
Trusting the redirect
Marking orders as paid because the customer landed on a thank-you page, without confirming through a webhook.
Duplicate processing
Not handling repeated notifications, which causes duplicate orders or shipments.
Exposed keys
Leaving secret keys in the front end or in public repositories.
Ignoring pending states
Cancelling orders too early or shipping before confirmation.
No refund flow
Having no process or screen to issue partial and full refunds.
One provider only
Depending on a single gateway with no fallback when it has an outage.
Integration roadmap for a custom store
- Define countries, currencies and payment methods.
- Select one primary provider, and a second if justified.
- Build the checkout with the provider's secure components.
- Implement and test webhooks in the sandbox, including failures.
- Add refunds, order states and notifications.
- Set up reconciliation reports.
- Test with small real payments before launch.
After payment comes delivery: connect your store to carriers as described in our shipping integration guide. If you are still deciding on platform, read about custom e-commerce development (page in Spanish).
Frequently asked questions
Which payment gateway is best for my online store?
There is no single best option. It depends on your customers' countries, preferred payment methods, fees and settlement times. Many stores combine two providers.
Is it safe to accept cards on my own website?
Yes, if card data is collected by the provider's secure components and your system only stores tokens or payment IDs.
What is a webhook in payments?
It is an automatic notification from the provider to your server whenever a payment changes status, so your store can update the order reliably.
Can I offer installments?
In many markets, yes, depending on the provider, issuer and country. Check supported plans and who pays the financing cost.
How do I reconcile payments with orders?
Store the provider's payment ID on each order, record fees and net amounts, and compare settlement reports with your order data regularly.
Written by
Asteby Team
Experts in software development and AI automation.


