woovibr / pixqrcode-node-backend-integration

OpenPix Backend Integration Example for PixQrCode API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

OpenPix Backend Integration Example for PixQrCode API


Languages

Language:TypeScript 77.3%Language:JavaScript 22.1%Language:Shell 0.5%