Redirect the buyer to checkout
Client-Side
With the order created and the checkout_url available, the next step is to redirect the buyer to the Mercado Pago payment environment. The buyer completes the payment on Mercado Pago and returns to your site through the return URLs configured in the previous step.
Perform the redirect
Obtain the checkout_url from the order creation response and redirect the buyer to that address.
javascript
const checkoutUrl = "https://www.mercadopago.com.ar/checkout/v1/redirect?order_id=ORDTST01KS5AJ6HTK2HRQ3XJ3C2JCKP9"; window.location.href = checkoutUrl;
Set up payment notifications so your server receives real-time updates about the events that occur in your integration.
With this, the redirect flow for the web integration is configured. The buyer is redirected to the Mercado Pago environment, completes the payment, and returns to your site through the configured return URLs. To finish the integration, set up payment notifications and follow the steps to go to production.
