{"repo":"mercadopago/sdk-php","free":true,"listed":false,"github":"https://github.com/mercadopago/sdk-php","clone":"git clone https://github.com/mercadopago/sdk-php.git","description":"Mercado Pago's Official PHP SDK","language":"PHP","stars":427,"topics":["sdk","php","mercadopago","backend-sdk"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Mercado Pago SDK for PHP This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments. 💡 Requirements The SDK Supports PHP version 8.2 or higher. 💻 Installation If you already use another version of MercadoPago PHP SDK, take a look at our migration guide from version 2 to version 3. First time using Mercado Pago? Create your Mercado Pago account, if you don’t have one already. 1. Download Composer if not already installed. 2. Install PHP SDK for MercadoPago running in command line: You can also run composer require \"mercadopago/dx-php:2.6.2\" for PHP7.1 or composer require \"mercadopago/dx-php:1.12.6\" for PHP5.6. 3. Copy the access token in the credentials section of the page and replace YOUR ACCESS TOKEN with it. That's it! Mercado Pago SDK has been successfully installed. Useful links - SDK Docs - REST API (consumed by the SDK) - CHANGELOG Here you can check eg. data structures for each parameter used by the SDK for each class. 🌟 Getting Started with payment via your own website forms Simple usage looks like: Step 1: Require the library from your Composer vendor folder Step 2: Set production or sandbox access token You can also set another properties as quantity of retries, tracking headers, timeouts and a custom http client. Step 3: Initialize the API client Step 4: Create the request array Step 5: Create the request options, setting X-Idempotency-Key Step 6: Make the request Step 7: Handle","default_branch":null,"files":null,"tree":[],"storefront":"/r/mercadopago","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mercadopago/sdk-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}