Mercado Pago official SDKs
Reduce integration time using our official libraries. With them, we make your development process easy in the most used languages in the market.
You must install MercadoPago.js to make calls to the card token and have other client-side features in your integrations.
The use of backend SDKs is optional. With them, you can obtain server-side functionalities of our online payment solutions such as:
- Create and view the status of different payments
- Integrate payments with cards or other payment methods
- Refund or cancel payments
MercadoPago.js
- SDK version 1
- SDK version 2
NUEVA
To install the frontend SDK you must include MercadoPago.js in the HTML of your application:
HTML
<script src="https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js"></script>
Set up your credentials
As a last step, add the Public key of the account you are integrating so we can identify it when connecting to Mercado Pago.
Find all the information about credentials in our FAQs.
Javascript
window.Mercadopago.setPublishableKey("YOUR_PUBLIC_KEY");