Skip to main content
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

For environments without Composer (legacy WHMCS / BillManager hosts) the SDK can also be vendored manually — every plugin in this repository ships an embedded copy under its own vendor/ directory.

Quick start

The client always returns the unwrapped 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.