ponchopay / pp-php
Tools to integrate PonchoPay on PHP
1.5.0
2026-03-25 16:57 UTC
Requires
- php: ^8.4
- firebase/php-jwt: ^7.0
- symfony/http-client: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.90
- phpunit/phpunit: ^12.0
README
Tools to integrate PonchoPay on PHP
Installation
Install it from packagist:
composer require ponchopay/pp-php
Usage
This package declares the following functions:
- createToken: This function allows the creation of tokens for the initialisation endpoints.
- createJWT: This function allows the creation of JWTs for the payment manipulation endpoints.
And the Client class which provides the following methods:
- validateLocationUrn: This method allows you to validate a location to ensure it is ready to process payments.
- initiatePayment: This method allows to initialise a payment in PonchoPay.
- initiateSubscription: This method allows to initialise a subscription in PonchoPay.
- updatePaymentMethod: This method allows to change the Payment Method properties.
- refundPaymentMethod: This method allows to fully or partially refund a Payment Method.
- cancelPayment: This method allows to cancel a Payment.
- cancelRecursion: This method allows to cancel a Recurring Payment.
Development
Linting and formatting
To automatically fix linting and formatting errors, run
composer exec php-cs-fixer fix .
Testing
To ensure the project is bug-free, run
composer exec phpunit tests/