External redirect opening scheme
The opening scheme defines how the checkout will be displayed to the buyer. Checkout Pro offers two modes:
- Redirect (default): redirects the buyer within the same browser window.
- External redirect: opens the checkout in a new window or tab.
To configure the external redirect, use the checkout_url value obtained in the response to the Create orderAPI and include it in your project's frontend with the target="_blank" attribute to open the checkout in a new window or tab.
html
<a href="YOUR_CHECKOUT_URL" target="_blank"> <button>Pay with Mercado Pago</button> </a>
If you prefer the default redirect (same window), omit the target attribute:
html
<a href="YOUR_CHECKOUT_URL"> <button>Pay with Mercado Pago</button> </a>