v1.0.0-alpha.1
Pre-release
Pre-release
First alpha of the Quickpay PHP SDK — a small, strongly-typed client for the Quickpay API.
⚠️ Alpha — the public API may still change before1.0.0.
Features
- Payments: create, get, list/paginate, update (
PATCH), authorize, capture, refund, cancel — with an optionalsynchronizedflag to wait for the completed transaction. - Payment-window link flow:
createLink()returns the hosted payment-window URL to redirect the customer to. - Callbacks (webhooks): timing-safe checksum verification (
hash_equalsover the raw body, account private key) + typed deserialization, with strictQuickPay-Resource-Typehandling (Payment/Subscription). /pinghealth check.- Typed request/response DTOs with a
$rawfallback for unmodeled fields, and a typed exception hierarchy (everything implementsQuickpayException). - Credential-leak protection: the client refuses to send to any host other than
api.quickpay.net.
Requirements
- PHP 8.1 – 8.5
- A PSR-18 HTTP client + PSR-17 factories (auto-discovered via
php-http/discovery)
Install
composer require setono/quickpay-php-sdk:"^1.0@alpha"
# plus an HTTP client + PSR-17 factory if you don't have one, e.g.:
composer require kriswallsmith/buzz nyholm/psr7See the README for usage, the callback flow, and the end-to-end test harness.
Quality
Tested against PHP 8.1–8.5 (lowest + highest deps), PHPStan level max, ECS, Rector, and mutation testing (Stryker), plus a real-API end-to-end verification of the payment + callback flow.