Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercadopago Checkout API

Mercadopago Checkout API library.

How to install

npm install mercadopago

How to use

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

});

Methods

  • 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

Author

Dan Zajdband dan.zajdband@gmail.com

Docs

visit Mercadopago Developers for more information about Mercadopago API

Contributing

If you want to contribute remember to add tests before and replace the test/keys.json with your own api keys.

About

Mercadopago Checkout API library

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages