pawpayments/sdk is a tiny dependency‑free PHP library used by all official plugins. You can also install it directly to integrate PawPayments into a custom PHP application.
Install from Packagist
The published Composer package.
View source on GitHub
Source, releases, and issue tracker.
Installation
vendor/ directory.
Quick start
result object from the standard { ok, result } response envelope, and throws PawPaymentsApiException (with the upstream error code, message, and HTTP status) for both transport and API failures.
Methods
The SDK is intentionally minimal — anything not covered by these two methods is one
curl call away. The same authentication header (x-api-key: <api-key>) and the same response envelope are used on every endpoint.
Webhook verification
PawPayments\Sdk\Webhook::verify() validates the HMAC‑SHA256 signature delivered in the X-Paw-Signature header. Use the raw request body — JSON‑re‑encoding the payload before hashing will break the comparison.

