Skip to main content

Introduction

Mercado Pago is a widely used payment gateway and wallet solution in Latin America that offers a convenient and secure way for customers to pay for goods and services. Integrating Mercado Pago with Payrails allows you to provide a fast, easy-to-use payment option for your customers while leveraging our platform to route the payment to any Payment Service Provider (PSP). This guide will explain the process of integrating MercadoPago into your app or website using Payrails. Payrails <-> Mercado Pago workflow

Pre-requisites

In order to start using MercadoPago with Payrails, you must:
  1. Integrate with Payrails using one of our SDKs or our API
  2. Configure a new integration account for Mercado Pago.
  3. Enable Generic Redirect as a payment option.
  4. Make sure you’re sending the MercadoPago-specific meta fields (found under Merchant configurations -> Meta fields on your Payrails dashboard and in the examples below) in your requests.

Ways to integrate Mercado Pago

Payrails SDK

The simplest way to use MercadoPago with Payrails is to use our drop-in in your checkout flow. With this integration type, no additional development work is required to accept payments with MercadoPago except for handling success/failure screens for your users. For a more flexible implementation using our SDK, you can use our MercadoPago’s (genericRedirectButton) element. See special instructions here for your client-side implementation.

Server-to-server integration

You also have the option to completely manage your own client-side implementation, and use Payrails APIs with a server-to-server integration to process payments with MercadoPago. With this approach, follow the documentation below to build Mercado Pago into your applications:

Parse Mercado Pago from lookup response

Pass Mercado Pago payment method in request to authorize payment with Payrails

Supported regions / countries

Supported workflows and services

Save Instruments is available on the Mercado Pago side.
Last modified on September 30, 2026