Pix Example Using the OpenPix Platform. OpenPix Developers
Basic OpenPix Backend Integration Example
This is a sample of how to integrate OpenPix Api in your backend
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
HMAC_SECRET_KEY=<openpix_hmac_secret_key>
yarn start