Mercado Pago payments integration
Bookla's integration with Mercado Pago allows you to securely process payments for bookings using Mercado Pago payment infrastructure. This guide covers setting up Mercado Pago payment processing for your Bookla services, handling payment events through webhooks, and managing the payment lifecycle within your booking flow. Before proceeding with the integration, ensure you have an active Mercado Pago account and access to your API keys.
Enabling Mercado Pago Payments Plugin
To start accepting payments through Mercado Pago, you need to enable the Mercado Pago Payments plugin in your Bookla account. Follow these steps to set up the plugin:
- Log in to your Bookla Dashboard.
- Navigate to the "Plugins" section.
- Click on "+ Add plugin" to see all available plugins.
- Locate the "Mercado Pago" plugin and click "Add".
- Now, Mercado Pago menu item will appear in the sidebar.
Configuring Mercado Pago Settings
After enabling the Mercado Pago plugin, you need to configure your Mercado Pago account settings in Bookla. Follow these steps to set up your Mercado Pago integration:
- Click on the "Mercado Pago" menu item in the sidebar.
- Click "+ Start connecting" to begin the setup process.
- Enter the following details:
- Access Token: Your Mercado Pago Access Token. Please read below how to obtain this token.
- Success Redirect URL: The URL where users will be redirected after a successful payment.
- Cancel Redirect URL: The URL where users will be redirected if they cancel the payment.
- Failure Redirect URL: The URL where users will be redirected if the payment fails.
- Click "Connect" to complete the setup.
Obtaining Mercado Pago Access Token
To obtain your Mercado Pago Access Token, follow these steps:
- Log in to your Mercado Pago Developer Dashboard.
- Choose your application (or create one if needed)
- Navigate to the "Credentials" section.
- Find your Credentials:
You’ll see two pairs of credentials:
- Access Token: This is the token you need to enter in Bookla.
- Public Key: This is not required for Bookla integration.
Example Access Tokens:
Sandbox: TEST-1234567890123456-1234567890123456-1234567890123456
Production: APP-1234567890123456-1234567890123456-1234567890123456