Skip to content

woovibr/php-backend-integration

Repository files navigation

php-backend-integration

Pix integration example using the OpenPix Platform. Check our documentation at OpenPix Developers.

Example API

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.

Setup

Generate a App ID in your OpenPix Account.

Copy the env.example.php into env.php file and configure the AppID there.

How to run

Docker

Having Docker compose installed, configure the environment variables in the env.php file and run the docker compose up command.

PHP

Having Composer and PHP >=8.1.0 installed directly on your machine, execute the command ./start-server.sh.

How to access the API

By default, API runs at http://0.0.0.0:8080

About

Example Woovi/OpenPix integration with PHP-SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages