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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pay-po

PayPo PHP library

Documentation of the API can be found here:

Installation

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

PHP Build Version
Package Version
Requires php Version ^8.3
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package answear/pay-po contains the following files

Loading the files please wait ...