Connect your app to Mercado Pago
Connect your Mercado Pago account to accept customer payments via credit cards, Pix, and subscriptions in your Lovable app. Lovable automatically checks payment status so orders are only marked paid once the money is verified.
Anyone selling goods, digital products, or memberships in Latin America using Mercado Pago.
Do this, in order
- 1
Sign in to the Mercado Pago developer panel, navigate to your app's Credentials, and copy your Access Token.
Lovable requires the private access token to create checkouts and verify customer payments.
- 2
Go to the Connectors page in Lovable, choose Mercado Pago, and click Connect.
This starts creating the reusable payment connection inside your Lovable workspace.
- 3
Paste your Access Token into the connection setup form, set your sharing preference, and click Connect.
Lovable tests the key against Mercado Pago to make sure it works before saving.
- 4
Ask Lovable in your project chat to link the Mercado Pago connection and create your payment page.
This connects your project to the credentials and generates the checkout logic.
- 5
Switch your connection's Access Token to production credentials once your app is tested and ready to launch.
Every linked project will automatically begin taking real payments instead of test transactions.
Paste this into your project
Use Mercado Pago and build a checkout for my shop so customers can pay for their cart with Checkout Pro. Mark the order as paid only after Mercado Pago confirms the payment.
Words decoded
- Access Token
- A secure digital password that authorizes your Lovable app to talk to your Mercado Pago account.
- Checkout Pro
- Mercado Pago's pre-built payment page that securely processes cards, Pix, and bank slips.
- Pix
- Brazil's instant bank transfer system that uses QR codes and copy-paste strings to send money immediately.
- Webhook
- An automated alert sent from Mercado Pago to your app the instant a payment status changes.
Where people get stuck
- Do not paste your Public Key; Lovable only accepts an Access Token.
- Do not attempt to pay a test Pix code from a real banking app because test Pix codes will not work.
- Do not pay with the same account that owns the seller credentials, or the checkout button will be disabled.
- Do not build custom credit card input fields on your own page because card payments must run through Checkout Pro.
- Subscriptions do not support Pix or bank slips; they only charge credit cards.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.