MercadoPago.js V2

Compatible browsers
Fraud prevention

Instalación
To install the frontend SDK, you must include MercadoPago.js in the HTML of your application, as shown in the code below.
<script src="https://sdk.mercadopago.com/js/v2"></script>
Then, you must add the Public Key of the account you are integrating so that it can be identified when connecting to Mercado Pago.
const mp = new MercadoPago('YOUR_PUBLIC_KEY');
Learn more about the Public Key at Credentials