Search by

answear / pay-po

lukasz-falda

PayPo PHP library.

Package info

github.com/answear/pay-po

pkg:composer/answear/pay-po

Statistics

Installs: 18 881

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

6.0.1 2026-09-03 07:02 UTC

README

Documentation of the API can be found here:

Installation

  • install with Composer
composer require answear/pay-po

Usage

use Answear\PayPo\Configuration\PayPoConfiguration;
use Answear\PayPo\Request\Transaction\CreateRequest;
use Answear\PayPo\Service\Order;
//...

PayPoConfiguration::setForSandbox('clientId', 'apiKey', 'api.sandbox.paypo.pl');

$orderService = new Order();
$registerResponse = $orderService->create(new CreateRequest(...));

$redirectUrl = $registerResponse->redirectUrl;
//...

//others requests
$orderService->confirm('transaction-uuid');
$orderService->refund('transaction-uuid', 123);
$orderService->getStatusDetails('transaction-uuid');
$orderService->cancel('transaction-uuid');

Final notes

Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.