GithubHelp home page GithubHelp logo

isabella232 / pix-payment-sample-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mercadopago/pix-payment-sample-node

0.0 0.0 0.0 349 KB

License: MIT License

JavaScript 26.00% CSS 31.93% HTML 42.07%

pix-payment-sample-node's Introduction

Pix payment processing with Checkout API

Português / Español

⚠️ Attention: Pix is a payment method only available in Brazil

💻 Technologies

  • Node.js
  • NPM (dependency manager)
  • Express

💡 Requirements

  • Node.js 10 or later (you can download it here).
  • Read our instructions on how to create an application at the Mercado Pago Developer Panel in order to acquire your access token. It will grant you access to Mercado Pago's public APIs.
  • For detailed information about receiving payments with Pix, please read our guide at Mercado Pago Developers.

⚙️ Installation

  1. Clone the project.
git clone https://github.com/mercadopago/pix-payment-sample-node.git
  1. Go to the project's folder.
cd pix-payment-sample-node
  1. Then install the dependencies.
npm install

🌟 How to run it

  1. Run the following command to start the application:
MERCADO_PAGO_SAMPLE_ACCESS_TOKEN=YOUR_ACCESS_TOKEN npm start
  1. Remember to replace the value of YOUR_ACCESS_TOKEN with the corresponding credential from your account.

  2. Navigate to http://localhost:8080 in your browser.

🧪 Testing

  • On our testing instructions you'll find a guide on how to create test users.
  • You have to create a Pix key in the seller's account in Mercado Pago (remember you can create and use a test user as a seller).
  • IMPORTANT: there are some limitations when testing this payment method with test users. When creating a payment, it will be pending and the corresponding Pix code and QR code will be returned, but it will not be possible to use these codes to end the flow and approve the test payment.

🤝 Contributing

You can contribute to this project by reporting problems and bugs. Before opening an issue, make sure to read our code of conduct.

🔖 License

MIT License. Copyright (c) 2021 - Mercado Pago
For more information, see the LICENSE file.

pix-payment-sample-node's People

Contributors

andreagostinho-meli avatar elvisjhonataoliveira 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.