This project implements Mercado Pago Checkout Pro as a payment gateway for Drupal Commerce, using the official Mercado Pago PHP SDK.
Features
- Checkout Pro integration for Latin American markets
- Two redirect modes:
- Redirect (default): same browser window
- External redirect: popup that closes when the buyer returns
- Test, Stage, and Live credential modes
- Installments and per-country payment types / methods, with exclusions from the gateway settings
- Refunds from Drupal Commerce
- Works with Commerce Shipping
- Optional debug logging for troubleshooting
Payment notifications
- Webhooks (recommended): signed notifications (
x-signature), timestamp checks, and payment updates from the Mercado Pago API. Configure the Notification URL and webhook secret in Mercado Pago → Your integrations → Webhooks. - IPN (deprecated): legacy preference
notification_urlmode, kept for existing configurations. IPN will be removed in 4.0.x.
Requirements
- Drupal ^10 || ^11 || ^12
- PHP 8.2+
- Commerce Payment
- mercadopago/dx-php ^3.13 (pulled in by Composer)
Post-installation
- Create a Mercado Pago application and copy Public Key + Access Token.
- Add a payment gateway: Mercado Pago CheckoutPro.
- Start in Test (or Stage), then move to Live credentials.
- Configure Webhooks: paste the gateway Notification URL into Mercado Pago (Test or Production URL), enable Payments and commercial order events, paste the webhook secret into Drupal, select Webhooks, and save.
- Place a test order and confirm the Commerce payment is created from the notification and/or checkout return.
Documentation: Checkout Pro, Credentials, Webhooks.
See the module README for Webhooks vs IPN details and migration steps.
Project information
- Project categories: E-commerce, Integrations
- Ecosystem: Commerce Core, Payment Gateway
7 sites report using this module
- Created by drupal entity on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.

