🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Payment Add-on for Mercado Pago: Setup Guide

Updated 8 min read Gravity Forms Payments & Pricing
On this page
  1. How Checkout Pro Works With Your Form
  2. Step 1: Install and License the Add-on
  3. Step 2: Connect Your Account
  4. Sandbox and Live mode
  5. Add your access tokens
  6. Currencies by country
  7. Step 3: Set Up Notifications
  8. Add the secret signature
  9. Step 4: Build the Payment Form
  10. Step 5: Create the Payment Feed
  11. Products and Services
  12. Subscription
  13. Managing Payments From the Entry Screen
  14. Test in Sandbox Before Going Live
  15. Developer Filter: Customize the Checkout
  16. Troubleshooting & FAQ
  17. Saving the settings says Mercado Pago rejected the access token.
  18. Customers see “Mercado Pago payments are not available for this currency”.
  19. Customers see “We could not start the Mercado Pago checkout”.
  20. Entries stay on Processing or Pending after the customer paid.
  21. Resource Hub

Latin American customers expect installments, Pix, boleto or OXXO. The Gravity Forms Payment Add-on for Mercado Pago connects any Gravity Forms order, booking or membership form to Mercado Pago Checkout Pro. The customer submits the form, pays on Mercado Pago’s secure page and returns to your confirmation message. One-time payments, subscriptions and refunds are all handled from Gravity Forms.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.5 or higher
  • Mercado Pago account: a seller account in Argentina, Brazil, Mexico, Chile, Colombia, Peru or Uruguay, with an application created under Your integrations. Test credentials work right away; production credentials come from the same application.
  • Currency: the Gravity Forms currency must be your Mercado Pago account’s currency (see the table below)
  • Website: a public HTTPS site, so Mercado Pago can deliver payment notifications
  • GravityExtra license: the add-on installed, activated and licensed

How Checkout Pro Works With Your Form

There is no card field to add and no payment script on your site. On submit, the add-on creates a Checkout Pro payment preference and redirects the customer to Mercado Pago. Card numbers, Pix codes and boleto details are handled there, so they never reach WordPress or your entries.

  • Amounts are calculated on your server from the form’s pricing fields. Gravity Forms rejects tampered prices before anything is sent.
  • The payment is checked with Mercado Pago when the customer returns and when a notification arrives. The add-on reads the payment from Mercado Pago and marks the entry Paid only if it belongs to that entry and the amount and currency match.
  • Pending payments, such as an unpaid boleto, set the entry to Pending until Mercado Pago confirms them. Declined payments set it to Failed, and the customer can try again.

Step 1: Install and License the Add-on

  1. Go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Open Forms → Settings → Mercado Pago.
  3. Enter your license key in the Gravity Extra License section and save.

Step 2: Connect Your Account

Sandbox and Live mode

Sandbox (test) is the default, and a new installation stays in Sandbox until you choose Live. In Sandbox the settings page shows a yellow “Sandbox mode” notice, checkouts use your test credentials and no real money is charged. Entries paid in Sandbox carry a “Sandbox mode — test payment” badge on the entry screen.

Add your access tokens

In Mercado Pago go to Your integrations → your application → Credentials. Copy the test Access Token (it starts with TEST-) into Sandbox (test) access token, and later the production Access Token (APP_USR-) into Live access token. Click Save Settings. Both are stored in masked fields.

Saving checks the token with Mercado Pago. A rejected token is not saved. A working token shows Connected to Mercado Pago (Sandbox) with your account country and currency. If the live token belongs to a test user, the page warns you. The optional Statement descriptor (up to 22 letters, numbers and spaces) is the name shown on the customer’s card statement.

Mercado Pago account settings in Gravity Forms in Sandbox mode with a masked test access token, Connected to Mercado Pago (Sandbox) for a Brazilian account in BRL, a statement descriptor, the webhook URL and a masked sandbox webhook secret
Forms → Settings → Mercado Pago in Sandbox mode, connected to a Brazilian account.

Currencies by country

Mercado Pago only accepts your account’s currency, so set the same currency under Forms → Settings → Currency. Gravity Forms includes BRL and MXN; the add-on adds ARS, CLP, COP, PEN and UYU. If the currencies differ, the settings page tells you which currency to choose and the form shows a message instead of starting a checkout.

Account country Form currency
Argentina ARS
Brazil BRL
Mexico MXN
Chile CLP (whole numbers)
Colombia COP (whole numbers)
Peru PEN
Uruguay UYU

Step 3: Set Up Notifications

Notifications update entries even if the customer never returns, for example when a boleto is paid days later or you refund in Mercado Pago. Every one-time checkout sends the Webhook URL from the settings page to Mercado Pago automatically (your site address followed by /?callback=gfmercadopagoaddon). Mercado Pago only delivers to public HTTPS addresses.

For subscriptions, also add the URL in Your integrations → your application → Webhooks and select the events Payments and Plans and subscriptions.

Add the secret signature

On the same Webhooks page Mercado Pago shows a secret signature. Paste it into Sandbox webhook secret (and the live one into Live webhook secret). Once a secret is saved, notifications without a valid x-signature header are rejected. With or without a secret, the add-on never trusts the notification body: it reads the payment or subscription from Mercado Pago with your access token before changing an entry.

Step 4: Build the Payment Form

Use standard Gravity Forms pricing fields: one or more Product fields, optional Option or Shipping fields and a Total field. Add Name, Email and Phone fields for the payer details Mercado Pago receives. If you also accept other ways to pay, add a “Payment method” choice.

Gravity Forms booking form for a pottery workshop with a workshop seat and a clay and glaze kit, an R$ 475,00 total, customer name, email and mobile number, and Pay online with Mercado Pago selected
A booking form with products and a total. There is no card field: payment happens on Mercado Pago.

Step 5: Create the Payment Feed

Open the form, go to Settings → Mercado Pago and click Add New. Choose the Transaction Type.

Products and Services

A one-time Checkout Pro payment. Set Payment Amount to Form Total or a single product field, then choose:

  • Maximum installments: the highest number of card installments the customer can pick (1 to 24, or Mercado Pago’s default). Which plans appear and whether they carry interest depends on your account and country.
  • Instant approval: only accept payments that are approved or rejected immediately. Useful for limited seats; offline methods that confirm later, such as boleto or OXXO, may not be offered.
Mercado Pago feed with Products and Services transaction type, Form Total payment amount, maximum installments set to 6 and the Instant approval option unchecked
A one-time feed offering up to 6 installments.

Subscription

Creates a Mercado Pago subscription. Choose the Recurring Amount, the Billing Cycle (1–365 days, 1–52 weeks, 1–12 months or 1 year) and Recurring Times (or infinite). The customer authorizes the subscription on Mercado Pago and is charged on each cycle. Setup fees and trial periods are not available, and the subscriber’s email must be mapped under Billing Information.

Mercado Pago feed with Subscription transaction type, Form Total recurring amount, a 1 month billing cycle and infinite recurring times
A monthly membership feed.

Under Billing Information, map first name, last name, email, phone and address. Under Conditional Logic, run the feed only when the customer chooses to pay online. Keep Send form notifications only after Mercado Pago approves the payment switched on (the default) so your team is only notified about paid orders.

Managing Payments From the Entry Screen

Each entry has a Mercado Pago box with the status, payment ID, payment method, order total and refunded amount (or the subscription ID, recurring amount and charges recorded), plus a link to your Mercado Pago activity. Users who can edit entries get these actions, each with a confirmation prompt:

  • Refund a full or partial amount of a paid one-time payment. The field is pre-filled with the refundable amount and you cannot refund more than was paid. A partial refund sets the status to Partially Refunded.
  • Refresh status from Mercado Pago reads the payment or subscription again.
  • Cancel Subscription (the standard Gravity Forms button) cancels the subscription in Mercado Pago and sets the entry to Cancelled. Refunds of individual subscription charges are made in Mercado Pago.
Mercado Pago box on a paid Gravity Forms entry after an R$ 95,00 partial refund, showing Partially Refunded status, payment ID, payment method and the remaining refundable amount
One-time payment: glaze kit refunded.
Mercado Pago box on an active subscription entry with the subscription ID, R$ 189,90 recurring amount and one charge recorded
Subscription: active, first charge recorded.

Refunds made in Mercado Pago, chargebacks, disputes and each subscription charge are recorded on the entry when the notification arrives.

Test in Sandbox Before Going Live

  1. Log in at Mercado Pago Developers (or your country’s site), open Your integrations and click Create application for online payments with Checkout Pro.
  2. Open Credentials → Test credentials and copy the Access Token.
  3. Under Test accounts, create a seller and a buyer test user in the same country.
  4. In WordPress, set Forms → Settings → Currency to the account currency, keep Sandbox (test), paste the token and save.
  5. Optional: on a public HTTPS test site, add the webhook URL with the Payments and Plans and subscriptions events and paste the secret signature.
  6. Place test orders while logged in as the test buyer, ideally in a private browser window: an approved card, a declined card, a boleto or OXXO payment (it stays Pending), a partial and a full refund, and a monthly subscription that you then cancel from the entry.

On the Brazilian test purchases page, Mercado Pago lists test cards such as Mastercard 5480 8328 0103 3311 (CVV 123, expiry 11/30). The cardholder name sets the result: APRO for approved, OTHE for declined and CONT for pending. Other countries have their own test cards, so check the page for your market. When everything works, paste your production token and secret, and switch the add-on to Live.

Check these in your own test application: whether Mercado Pago signs notifications that come from a checkout’s notification URL and from subscriptions, and how subscription charges appear. The add-on re-reads every object from Mercado Pago either way.

Developer Filter: Customize the Checkout

The gravityextra_mercadopago_preference_payload filter changes the Checkout Pro preference before it is sent. It passes $payload, $feed, $entry and $form. Leave the amounts and currency alone: the add-on compares Mercado Pago’s amount with the entry and will not mark a mismatch as paid. This example removes boleto and other cash payment options from form 3, so last-minute workshop seats are paid by card or Pix:

functions.php
PHP
// No boleto or other cash payments for checkouts from form 3
add_filter( 'gravityextra_mercadopago_preference_payload', function( $payload, $feed, $entry, $form ) {
    if ( (int) $form['id'] !== 3 ) {
        return $payload;
    }
    $payload['payment_methods']['excluded_payment_types'] = array( array( 'id' => 'ticket' ) );
    return $payload;
}, 10, 4 );

Subscriptions have their own filter, gravityextra_mercadopago_preapproval_payload, with the same arguments.

Troubleshooting & FAQ

Saving the settings says Mercado Pago rejected the access token.

Copy the Access Token again from Your integrations → Credentials: the test token for Sandbox, the production token for Live. Paste the Access Token, not the Public Key, and save.

Customers see “Mercado Pago payments are not available for this currency”.

The Gravity Forms currency is not your Mercado Pago account’s currency. Change Forms → Settings → Currency to the currency shown on the Mercado Pago settings page.

Customers see “We could not start the Mercado Pago checkout”.

Mercado Pago refused to create the checkout and the customer was not charged. The entry is marked Failed, and its note shows the HTTP status and Mercado Pago’s error code.

Entries stay on Processing or Pending after the customer paid.

Check that the site is reachable over HTTPS, that the webhook secret matches the current mode and, for subscriptions, that the URL is added under Webhooks. Refresh status from Mercado Pago on the entry updates it immediately.

Resource Hub

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr