Pix Example Using the OpenPix Platform. OpenPix Developers
Basic OpenPix Backend Integration Example for PixQrCode API
This is a sample of how to integrate OpenPix Api in your backend using the PixQrCode
POST /donation - crete a new donation
GET /donation/id - get donation info
POST /webhook - webhook that will be called by OpenPix API
Generate a App ID in your OpenPix Account
Create a .env file with the following data
PORT=5666
OPENPIX_API=https://api.openpix.com.br
APP_ID=<your app id>
MONGO_URI=mongodb://localhost/donation
yarn start