Mercadopago Checkout API library.
npm install mercadopago
Go to Mercadopago Developers Site. Follow the steps and get access credentials.
Then, in your script
var Mercadopago = require('mercadopago');
var m = new Mercadopago({
Client_id: 'your client id'
, Client_secret: 'your client secret'
});
m.configCheckout(your_attrs, function(err, data){
if(err) // Handle the error
else // Use the data
});
- configCheckout(Object attrs, Function callback) Create a new product configuration
- getAttr(Number id, Function callback) Get configuration attributes
- updateAttr(Number id, Object option, Function callback) Update a configuration option
Dan Zajdband dan.zajdband@gmail.com
visit Mercadopago Developers for more information about Mercadopago API
If you want to contribute remember to add tests before and replace the test/keys.json with your own api keys.