Download the PHP package pagnow/sdk-php without Composer
On this page you can find all versions of the php package pagnow/sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pagnow/sdk-php
More information about pagnow/sdk-php
Files in pagnow/sdk-php
Package sdk-php
Short Description Official PHP SDK for the PagNow payments API
License MIT
Homepage https://docs.v2.pagnow.com
Informations about the package sdk-php
pagnow/sdk-php
Official PHP client for the PagNow payments API. Zero runtime dependencies (native cURL), PHP 8.1+.
Quickstart
Payouts (withdrawals)
Move money out of your wallet to a PIX key, bank account, or crypto address.
A payout starts as PENDING. Whether it dispatches immediately or waits for
manual review is controlled per-account by PagNow (the "auto-payout"
setting — ask your account manager to enable it). Track the outcome with the
withdrawal.* webhook events or by polling retrieve().
You may hold multiple wallets per currency. Omit walletId and the payout
debits the currency's default wallet (or any spendable wallet with balance);
pass walletId to target a specific one.
Wallets
Balances are in the smallest currency unit (centavos). Wallet creation is handled by PagNow (admin); the SDK is read-only here.
Webhooks
Errors
Every non-2xx response throws a typed exception carrying the API's stable
error envelope (statusCode, message, requestId, fieldErrors):
| HTTP | Class | Use |
|---|---|---|
| 400 / 422 | Pagnow\Exceptions\PagNowValidationException |
inspect ->fieldErrors |
| 401 / 403 | Pagnow\Exceptions\PagNowAuthException |
check the apikey / tenant status |
| 409 | Pagnow\Exceptions\PagNowConflictException |
idempotencyKey reused with a different body |
| 5xx | Pagnow\Exceptions\PagNowException |
retried automatically (3 attempts, jittered backoff) |
| transport | Pagnow\Exceptions\PagNowNetworkException |
timeout / connection failure |
Defaults
- 30s per-request timeout (
timeoutMs) - 3 retries on 5xx / network errors with full-jitter exponential backoff; 4xx never retried
- Amounts are in the smallest currency unit (cents/centavos)
Prefer raw HTTP?
The API is plain REST + JSON — implement directly with Guzzle/cURL using the
in-dashboard docs (Integração → Documentação) and the OpenAPI reference at
https://v2.pagnow.com/docs/payments/reference.
License
MIT
All versions of sdk-php with dependencies
ext-curl Version *
ext-json Version *