Suggest edit
Help us improve the documentation
Did you see wrong information and would you like us to explain something else or improve our manuals? Please leave your suggestions on GitHub.

Mercado Pago Gateway: Checkout Mercado Pago

Pre-requisites

Have already integrated the Checkout Mercado Pago

Integration

There is only one necessary change to support the Gateway Model in the Checkout Mercado Pago: add the processing_modes attribute when you create a preference:

<?php  
  $preference = new MercadoPago\Preference();
  $item = new MercadoPago\Item();
  $item->title = 'Mi producto';
  $item->quantity = 1;
  $item->unit_price = 100.0;
  $preference->items = array($item);
  $preference->$processing_modes = array('gateway');
  $preference->save();
?>

Done! Your Checkout Mercado Pago is now working in the Gateway Model.

Hybrid model: the Checkout Mercado Pago doesn't support this mode yet. We are working to have this option soon. We'll let you know when is available to use.

Next steps

La búsqueda no arrojó ningún resultado.

Verifica la la ortografía de los términos de búsqueda o prueba con otras palabras clave.