finds.dev← search

// the find

mercadopago/sdk-php

★ 420 · PHP · MIT · updated Jun 2026

Mercado Pago's Official PHP SDK

Official PHP SDK for Mercado Pago, the dominant payment processor in Latin America (Brazil, Argentina, Mexico, etc.). If you're building e-commerce for the LATAM market, this is the library you reach for — there's no real alternative. PHP 8.2+ only as of v3.

Covers the full API surface: payments, orders, preferences (Checkout Pro), subscriptions (PreApproval), point-of-sale (Point), chargebacks, OAuth, and webhooks with signature validation. Clean separation between Client and Resource classes makes it easy to find what you need. Built-in idempotency key support via RequestOptions — the right primitive for payment APIs where duplicate requests are dangerous. Both unit and integration test suites exist, and the integration tests hit a real sandbox rather than mocks.

All request bodies are plain PHP arrays with no type safety — you won't know you passed the wrong field name until the API rejects it at runtime. The static MercadoPagoConfig::setAccessToken() is global mutable state, which makes it awkward in multi-tenant apps or anything using DI containers. No async support — every call blocks, which matters if you're processing webhooks under load. Documentation points mostly to Mercado Pago's own portal, and that portal is notoriously incomplete for edge cases; the SDK itself has no inline PHPDoc on most methods.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →