ponchopay / pp-php
Tools to integrate PonchoPay on PHP
1.3.0
2025-07-21 15:21 UTC
Requires
- php: ~7.0 || ~8.0
- firebase/php-jwt: ^6.11
- symfony/http-client: ^6.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.26
- phpunit/phpunit: ^10.3
This package is auto-updated.
Last update: 2026-03-23 17:47:00 UTC
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/