I recently need to implement a payment gateway with MercadoPago and because I am working with composer it’s seems off to use the require php statement. And also my lack of knowleage of all the array that the platform receives and response.
So in order to make it more simple I implemented a Object Oriented SDK that if you want you can use.
You can download it from.
Or include it in your projects with composer
composer require dnetix/mercadopago
The examples are in the examples folder in the repository.