Back
Integrate Mercado Pago Payment Gateway
What is it & why you need it
Mercado Pago is one of the most trusted payment services in Latin America. It supports popular local payment options such as credit and debit card, Pix (in Brazil), Pago Fácil (in Argentina), local bank transfers, and digital wallets.
You can accept payments instantly with the gateway. More importantly, your transactions remain secure because of the built-in fraud detection system.
With Mercado Pago integrated, you can serve Latin American users as it has a brand reputation and is the most widely used local payment system in that region. Customers already recognize and trust it, which can increase your checkout conversion rates.
How to get started using it
Log in to your Mercado Pago account. The first thing you have to do in order to integrate it with your EzyCourse site is to create an Application. To create an application, go to Configuration. From there, choose Business and click the Integrations option.

Go to Your Integrations and then click the Create Application button. If you already have existing applications then you should see those here.


Now, just fill up the form choosing the following options:
• Which type of payment solution are you integrating? Online payments.
• Are you using an e-commerce platform? No.
• Which product are you integrating? Checkout Bricks.
• What API are you integrating? Payments API.
You can of course give your own app name.

Ensure you checkmark the privacy statement and then click the Create Application button to finish.
Now, head over to Integrations on the developer dashboard and select your application. You might need to provide a code and authenticate using a Google Authenticator app.

You can edit your app settings from the Application Settings menu.

Go to the Production Credentials menu to find the public and access token keys. Copy the Public Key and the Access Token creds.

Now, head over to your EzyCourse dashboard and navigate to Site Settings -> General Settings -> and then select the Payment tab.

Scroll down to locate the Mercado Pago section. Enable the gateway and paste the creds on the respective fields.

From here, copy the Webhook URL.

With the webhook URL copied, go back to the Mercado developers dashboard and go to Webhooks, and click the Configure Notifications button.

Go to Productive mode and paste the copied webhook URL on the “Production URL” field.

Scroll down and copy the Secret Key from here. The secret key helps to validate the authenticity of the webhook used. Make sure you save the settings after pasting the webhook URL.

Paste the Secret Key on the “Webhook Secret Key” field on your EzyCourse dashboard.

Note that you have to first select a site currency that Mercado Pago supports before enabling it. Click the Update button to save the changes and start testing the payment from your checkout.
[Note: Update the product pricing when you enable the Mercado Pago payment.]

On the checkout page, customers can select the Mercado Pago and then give their card credentials to pay.

You can create both one-time and subscription pricing plans using Mercado Pago.
You can use Mercado Pago to accept payment from Uruguay, Mexico, Colombia, Argentina, Chile, Brazil, and Peru. The currency shortform are respectively: UYU, MXN, COP, ARS, CLP, BRL, and PEN.