/pixqrcode-node-backend-integration

OpenPix Backend Integration Example for PixQrCode API

Primary LanguageTypeScript

OpenPix Backend Integration Example for PixQrCode API

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

Setup

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

How to run

yarn start