Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/woovibr/node-backend-integration

OpenPix Backend Integration
https://github.com/woovibr/node-backend-integration

Last synced: 8 days ago
JSON representation

OpenPix Backend Integration

Awesome Lists containing this project

README

        

# OpenPix Backend Integration Example

Pix Example Using the [OpenPix](https://openpix.com.br/) Platform. [OpenPix Developers](https://developers.openpix.com.br/)

Basic OpenPix Backend Integration Example

This is a sample of how to integrate OpenPix Api in your backend

```jsx
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](https://developers.openpix.com.br/docs/plugin/app-id) in your OpenPix Account

Create a .env file with the following data

```jsx
PORT=5666
OPENPIX_API=https://api.openpix.com.br/
APP_ID=
MONGO_URI=mongodb://localhost/donation
HMAC_SECRET_KEY=
```

## How to run

```jsx
yarn start
```