quantumtecnology/pagarme-sdk
A lightweight Laravel/PHP SDK for the Pagar.me payment gateway, offering a simple integration layer for transactions, customers, cards, plans, subscriptions, and webhooks. Add Brazilian payment processing to your app quickly with a fluent API and Laravel service provider support.
pagarme/pagarme-php SDK vs. a thin in-house HTTP client (Laravel Http/Saloon). Frame it as: how much of our integration surface is worth owning?Consider it when:
Look elsewhere when:
pagarme/pagarme-php is maintained by the gateway itself; using it removes a layer of abandonment risk at the cost of some Laravel ergonomics, which you can wrap in ~100 lines of your own service class.Minimum diligence before adoption (all should be yes): recent commits within ~6 months; declared support for your Laravel/PHP versions; tests present; Pagar.me API version matches current docs; no hardcoded endpoints/keys; webhook signature verification implemented; an owner on your team assigned to fork-and-maintain.
To executives: Pagar.me is a credible Brazilian gateway, and this package is a Laravel shortcut to integrating it — potentially turning a multi-week payment build into days and accelerating our Brazil launch. But the commercial upside comes with a dependency caveat: the package has no adoption (zero stars, zero downstream projects) and a single maintainer, which is unacceptable risk for a revenue-critical path without mitigation. Recommendation: fund a two-week timeboxed spike using it as a reference implementation, and make the production decision between "fork and own it" or "official Pagar.me SDK behind our own thin wrapper." License is MIT, so forking is free and legally clean. Budget the maintenance owner up front — payments will need one regardless of choice.
To engineering: Treat this as a code sample, not a dependency. Read it for how Pagar.me's API maps into Laravel idioms — service provider bindings, config shape, webhook routing — then either vendor a pinned fork or port the useful parts onto the official SDK. Hard requirements before any production traffic: idempotency keys on every mutating call, webhook signature verification, retry/backoff policy, dead-letter handling for failed webhooks, and integration tests against the Pagar.me sandbox. Design the boundary as an internal PaymentGateway interface so swapping Pagar.me later is a config change, not a rewrite. Flag any place the API surface is incomplete relative to our roadmap (Pix, split, subscriptions) as a build item, not an assumption.
To finance, legal, and ops: The payment path inherits the gateway's compliance posture, not the package's — but the package determines how faithfully we implement it. Confirm we stay in the lightest PCI DSS scope (hosted fields, no raw PAN touching our servers), confirm transaction and fee data is retrievable for reconciliation, and confirm refund and chargeback workflows are supported by whatever we build on top. Because the package is unmaintained, we should own the upgrade cadence ourselves when Pagar.me deprecates an API version — that's an ongoing operational cost, not a one-time integration cost.
Bottom line: Directionally useful, currently unproven. Worth a short, cheap evaluation for a Brazil launch; not worth a direct production dependency without a fork-and-own plan or a switch to the official SDK.
How can I help you explore Laravel packages today?