Skip to content

v1.0.0-alpha.1

Pre-release
Pre-release

Choose a tag to compare

@loevgaard loevgaard released this 30 Jun 12:03
· 26 commits to 1.x since this release

First alpha of the Quickpay PHP SDK — a small, strongly-typed client for the Quickpay API.

⚠️ Alpha — the public API may still change before 1.0.0.

Features

  • Payments: create, get, list/paginate, update (PATCH), authorize, capture, refund, cancel — with an optional synchronized flag 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_equals over the raw body, account private key) + typed deserialization, with strict QuickPay-Resource-Type handling (Payment / Subscription).
  • /ping health check.
  • Typed request/response DTOs with a $raw fallback for unmodeled fields, and a typed exception hierarchy (everything implements QuickpayException).
  • 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/psr7

See 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.