Giter Site home page Giter Site logo

dx-nodejs's Introduction

License Build Status Coverage Status NPM Version Downloads

MercadoPago Node.js SDK

This library provides developers with a simple set of bindings to the MercadoPago API. You can read the full documentation here.

Node.js Versions Support

The SDK Supports Node.js from version v0 to the latest (v7).

Backward Compatiblity

If you implemented the previous SDK, you don't need to do anything. Just update the NPM Package and you will received all of the previous methods.

Installation

$ npm install mercadopago

or saving as a dependency on your package.json

$ npm install --save mercadopago

Credentials

Before you use the SDK, you need to get your credentials from the following address:

We highly recomend using only the access_token. If you provide the client_id and client_secret it's going to generate the access_token anyway (only on Production, for Sandbox use access_token).

Quick Start

First you need to require the library

var mercadopago = require('mercadopago');

Then you need to configure it with your credentials:

mercadopago.configure({
    access_token: 'ACCESS_TOKEN'
});

You don't need to instantiate mercadopago. It's a global singleton accross your application. Just require the SDK in any other file and it's already configured with your credentials.

Operations & Resources

Examples

In the examples folder you will find a web application. In this you can try some examples. For more information read the documentation here.

Testing

This project is tested using:

  • Mocha
  • Chai
  • Sinon

You can see the current coverage here.

Links

License

Copyright © 2017.

dx-nodejs's People

Contributors

arielfr avatar delias-silva avatar leonardosal avatar mortaro avatar diegorbaquero avatar matiasgualino avatar chamini2 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.