Documentation Index
Fetch the complete documentation index at: https://docs.pawpayments.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
| Property | Value |
|---|---|
| Package name | pawpayments/sdk |
| GitHub | pawpayments/php-sdk |
| Minimum PHP | 7.4 (8.x supported) |
| Required extensions | ext-curl, ext-json |
| Runtime dependencies | None |
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
| Method | Endpoint | Notes |
|---|---|---|
createInvoice(array $params): array | POST /api/v2/invoices | Returns the created invoice including payment_url, order_id, external_id. |
getInvoice(string $orderId): array | GET /api/v2/invoices/{order_id} | Used for status polling and idempotent checks. |
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.

