Pix integration example using the OpenPix Platform. Check our documentation at OpenPix Developers.
This is a REST API designed to send donations. It encompasses the following endpoints:
- POST
/webhook
: Called when a webhook is triggered on the platform. - GET
/donation/{donationId}
: Retrieve a donation by its ID. - POST
/donation
: Create a new donation.
Generate a App ID in your OpenPix Account.
Copy the env.example.php
into env.php
file and configure the AppID there.
Having Docker compose installed, configure the environment variables in the env.php
file and run the docker compose up
command.
Having Composer and PHP >=8.1.0
installed directly on your machine, execute the command ./start-server.sh
.
By default, API runs at http://0.0.0.0:8080