Download the PHP package answear/pay-po without Composer
On this page you can find all versions of the php package answear/pay-po. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pay-po
PayPo PHP library
Documentation of the API can be found here:
Installation
- install with Composer
Usage
Refunds
Pass your own refund identifier (referenceRefundId, max 68 characters) to every refund request.
PayPo does not return an identifier of its own, so this is the only way to match a refund later on.
Refunds registered on a transaction are returned by getStatusDetails() as Refund[], but only
when PayPo enabled the extended status response for given merchant. Without it refunds is null,
which is not the same as an empty list - do not treat a missing refund as a failed one in that case.
Refunds created outside of your system, eg. in the PayPo panel, have no referenceRefundId.
A refund entry without amount or created makes getStatusDetails() throw BadResponseException.
Notifications
settlementStatus and message are sent only with the notification issued when PayPo generates
the transfer specification. A plain status or amount change notification carries neither.
The signature to verify is sent in the Notify::SIGNATURE_HEADER header.
Error handling
ApiErrorException means PayPo received the request and rejected it with a 4xx - eg. a 409 when
cancelling an already completed transaction, or a 400 with the reason in $error->message and
every validation error in $error->errors. ServiceUnavailable means PayPo could not be reached
at all and the request may be worth retrying.
Final notes
Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.
All versions of pay-po with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^6.0|^7.0
symfony/property-access Version ^7.0|^8.0
symfony/serializer Version ^7.0|^8.0