Supported workflows
| Workflow | Supported |
|---|---|
| Payrails SDK | ✔ |
| Payrails API | ✔ |
| Delayed / Manual Capture | ✖ |
| Instant Capture | ✔ |
| Cancel / Void | ✖ |
| Refund / Reverse | ✔ |
| Save Instruments | ✖ |
| Merchant Initiated Transaction (MIT) | ✖ |
Before you begin
Complete these steps before you send your first payment through Mercado Pago:- Set up a Mercado Pago integration in your workspace with your Mercado Pago access token and HMAC key. Payrails uses the HMAC key to verify Mercado Pago notifications. Follow the Mercado Pago integration setup guide if you don’t have one yet.
- Ask Mercado Pago to enable Checkout Pro, and the payment methods you want to offer, on your Mercado Pago account for each country you sell in.
- In the Payrails Portal, go to Settings → Integrations, open your Mercado Pago integration, select Mercado Pago under Payment methods, and save. To change how long a checkout session stays open, set Session Expiration Hours on the same integration.
- Add Mercado Pago as a payment option in your workflow.
Request fields for Mercado Pago
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.Authorize a Mercado Pago payment
Call authorize a payment withmercadoPago as the paymentMethodCode and hpp as the integrationType. The response includes the redirect to the Mercado Pago Checkout Pro page.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Mercado Pago handles Checkout Pro payments
- Payrails creates a Mercado Pago checkout session for each authorize request. The customer picks the payment method on the Mercado Pago page.
- When Mercado Pago reports the payment, Payrails updates its payment method from
mercadoPagoto the method the customer used:card,mercadoPagoWalletfor account balance,mercadoPagoConsumerCreditfor Mercado Pago credit,yapeorpagoEfectivo. - For a card payment, Payrails also records the card network, type and issuer details that Mercado Pago returns.
- The checkout session stays open for the Session Expiration Hours set on your Mercado Pago integration, or 24 hours by default.
- The customer can retry inside the same checkout session. Payrails records the payment as successful when one of the attempts succeeds.
- Payrails captures Mercado Pago payments immediately, so a successful payment is final. Refunds work for the full amount or part of it.
- Payrails sends your
merchantReferenceto Mercado Pago as the external reference of the payment.