sdk-php

Mercado Pago PHP SDK documentation

Use the root README to install the SDK and send a first request. This index connects runnable examples with the operational behavior implemented by the PHP SDK.

Start with Orders

Orders is the recommended learning path because it demonstrates the complete payment lifecycle. Begin with Create, inspect the result with GetOrderById, and continue with ProcessOrder, Capture, CancelOrderById, or RefundTotal.

Before production traffic, add bounded retries and idempotency and typed error handling. The Orders-first example catalog also covers Checkout Pro, transactions, PSE, 3DS, automatic payments, and industry fields.

Operational guides

Question Guide
How should timeout, retries, and idempotency be configured? Request options
How should failures be classified? Error handling
How should signed notifications be processed? Webhook validation
What should be checked first during an incident? Troubleshooting

Endpoint fields and response schemas belong to the Mercado Pago API reference.