Download the PHP package mercadopago/dx-php without Composer
On this page you can find all versions of the php package mercadopago/dx-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mercadopago/dx-php
More information about mercadopago/dx-php
Files in mercadopago/dx-php
Package dx-php
Short Description Mercado Pago PHP SDK
License MIT
Homepage https://github.com/mercadopago/sdk-php
Informations about the package dx-php
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.
-
Download Composer if not already installed.
- 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.
- 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
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 exceptions
π Getting started with payment via Checkout Pro
Step 1: Require the libraries
Step 2: Create an authentication function
Step 3: Create customer's preference before proceeding to Checkout Pro page
Step 4: Create the preference on Mercado Pago (DOCS)
In case you need to retrieve the preference by ID:
π Documentation
See our documentation for more details.
- Mercado Pago reference API. Portuguese / English / Spanish
π€ Contributing
All contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.
Please read and follow our contribution guidelines. Contributions not following these guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.
Patches to version 2.x.x
Since the release of version 3.0.0, version 2 is deprecated and will not be receiving new features, only bug fixes. If you need to submit PRs for that version, please do so by using master-v2 as your base branch.
β€οΈ Support
If you require technical support, please contact our support team at our developers site: English / Portuguese / Spanish