mercadopago/sdk
Official Mercado Pago SDK for PHP. Add payments, checkout, subscriptions, and refunds to your Laravel or PHP app through a consistent API for managing preferences, customers, payments, and webhooks, making it easy to accept and process payments across Latin America.
marketplace and application_fee primitives enable take-rate models, seller onboarding, and payout logic without building a ledger—relevant to any two-sided commerce roadmap.preapproval support underpins plan-based pricing experiments (trial, dunning, upgrade/downgrade) without a separate billing vendor.mercadopago/dx-php—and when to schedule the migration. Treat this package as a reference implementation and integration-pattern source, not a long-term dependency.Consider (with a migration caveat) when:
Look elsewhere when:
mercadopago/dx-php or call the REST API directly; a 2019-deprecated package with zero dependents and no security patching is a latent incident and audit finding.To executives (one paragraph):
MercadoPago is the leading payments platform across Latin America and is effectively table stakes for selling in Brazil, Argentina, and Mexico. This SDK is a free, MIT-licensed PHP client that lets us integrate it quickly—weeks of work instead of months—and supports the checkout, marketplace split, and subscription models our revenue roadmap depends on. Important caveat: this particular repository is officially deprecated (last updated 2019) with no active dependents, so we should treat it as an accelerator and reference, not our production foundation. My recommendation is to adopt MercadoPago as the LatAm payment provider while standardizing engineering on the maintained SDK, and to budget a small, one-time migration effort rather than inherit long-term maintenance and security risk.
To engineering leads (summary of fit and cost):
The package is a straightforward, low-abstraction HTTP wrapper around MercadoPago's REST endpoints—checkout preferences, payments, refunds, webhooks, preapprovals. Low conceptual lock-in: the wire format is the real contract, so swapping the client is mechanical. Risks are concrete and manageable: no security patches, stale TLS/HTTP client assumptions (likely Guzzle 6-era), and untested compatibility with PHP 8.2+/Laravel 10+. Proposed plan: (1) integrate against the maintained
dx-phpclient or a thin in-house REST wrapper, (2) use this repo's request/response patterns as integration documentation, (3) isolate all payment logic behind an internalPaymentGatewayinterface so provider or SDK changes never touch product code. Cost estimate: ~1–2 sprint-weeks for a standard checkout flow, plus explicit test coverage for webhook signature validation, idempotency, and currency rounding—these are where payment bugs actually come from.
How can I help you explore Laravel packages today?