ponchopay / pp-php
Tools to integrate PonchoPay on PHP
Installs: 4 304
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/ponchopay/pp-php
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: 2025-12-21 16:13:10 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:
- 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/