Prerequisites to get started
Find out what you need to know to integrate our Checkout API.
Have your credentials handy
Your credentials are the keys we provide you to configure your integrations. In this case, you will use a public and a private key.
The Public Key grants access to the resources that your frontend needs. It allows you to collect credit card data and turn it into a representative token that you can send to your servers securely to create a payment.
The private key, or Access Token, will allow you to call the rest of the APIs from your servers. For example, to process a payment, make a refund, or save cards.
To find them, go to the Credentials section.
Always use our libraries
Remember to always use our official libraries for your integration. This helps protect your customer's sensitive data, meet the required security standards, and keep yourself up to date.
MercadoPago.js allows you to create a payment token to send card data to your backend securely. You can use it by adding the following code to your website:
Install Mercado Pago SDK
Install an official SDK to simplify your interaction with our APIs.
Install Composer to use the SDK. Then run the following code on the command line:
php composer.phar require "mercadopago/dx-php:dev-master"
To install the SDK you must execute the following code on the command line of your terminal using npm:
npm install mercadopago
To install the SDK in your Maven project, add the following dependency in your pom.xml file and then run ´maven install´.
<dependency> <groupId> com.mercadopago </groupId> <artifactId> dx-java </artifactId> <version> 1.0.33 </version> </dependency>
The Mercado Pago SDK is available as a gem, to install it you must execute the following code on the command line:
gem install mercadopago-sdk
Use NuGet to install the Mercado Pago SDK .NET. To do this, run the following command in the NuGet Package Manager console:
PM> Install-Package mercadopago-sdk -Version 1.0.57
Learn our API References
If you can't use our official SDKs, you will have all the information about data queries and responses available to interact directly with our APIs in API References.
Meet the requirements for the production environment
When you develop your integration, consider all the requirements for the production environment. This process can ensure your customer's data security, compliance with legal standards or provisions in each country, and the best shopping experience for your customers.
Once your integration is ready, you just need to fill out the form for to go to production in the Credentials section to start receiving payments.