A la hora de instalar el SDK en un proyecto que no usa laravel sino php puro todo bien.
El tema es que al querer instalarlo usando el comando:
composer require "mercadopago/dx-php"
En mi proyecto con laravel 8 (que uso con jetstream) me tira el siguiente error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- mercadopago/dx-php[2.2.0, ..., 2.2.1] require doctrine/common ^2.6 -> satisfiable by doctrine/common[v2.6.0, ..., 2.13.x-dev].
- doctrine/common[v2.6.0, ..., 2.8.x-dev] require doctrine/inflector 1.* -> found doctrine/inflector[v1.0, ..., 1.4.x-dev] but the package is fixed to 2.0.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- doctrine/common[v2.9.0, ..., 2.13.x-dev] require doctrine/inflector ^1.0 -> found doctrine/inflector[v1.0, ..., 1.4.x-dev] but the package is fixed to 2.0. 3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires mercadopago/dx-php ^2.2 -> satisfiable by mercadopago/dx-php[2.2.0, 2.2.1].Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Lo que hice es actualizar mi composer y sigue el error.