Instalar SDK de Mercado Pago
Comprar curso

101. Instalar SDK de Mercado Pago

En este módulo, aprenderás cómo instalar el SDK (kit de desarrollo de software) de Mercado Pago, que te permitirá integrar Mercado Pago en tu aplicación de ecommerce utilizando Laravel.


4 comentarios

Inicia sesión para comentar

Comentarios:

  • Luis

    Luis hace 10 meses

    Hola, tuve este error cuando trate de instalar el paquete de mercado de pago:  

    Problem 1
       - doctrine/common[v2.4.0, ..., v2.5.3] require doctrine/inflector 1.* -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.6 (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.

     

    luego al tratar de instalar doctrine/inflector 1.* me da este otro error:

    Problem 1
       - Root composer.json requires doctrine/inflector 1.*, found doctrine/inflector[v1.0, ..., 1.4.4] but these were not loaded, likely because it conflicts with another require.

     

  • Edmer

    Edmer hace 10 meses

    en mi caso corrió con esto:

    composer require mercadopago/dx-php --with-all-dependencies
    • Victor Arana Flores hace 10 meses

      Hola Edmer, gracias por el aporte.

    • Luis Esteban Díaz hace 7 meses

      gracias capo! funcionando en laravel 10

  • Sebastian Huamani Tassara

    Sebastian Huamani Tassara hace 11 meses

    Buensa a todos, no creo que le pase a todos pero igual lo comparto para evitar la larga investigacion:

    A mi no da error el paquete de “doctrine/inflextor”, lo que me da error al instalar el sdk de mercado pago es el siguiente paquete “doctrine/lexer” y  al parecer en algunas versiones de composer hay un bug por lo que lei , referencia https://github.com/composer/composer/pull/9360

    Aunque lo que soluciono mi problema para que se instalase el sdk de mercado pago es actualizar el paquite de “doctrine/lexer” para ello es necesario primero actualizar con “composer require doctrine/lexer 1.* --with-dependencies” ya que la version que estaba instalada era la version 3  y el sdk de mercado pago me pedia la version 1.

    Espero que esto ayude a alguien que tuvo el mismo problema que yo y si no que compartan sus soluciones.

    • Jheyner David Ibagon hace 11 meses

      Hola, estoy con laravel 10 y php 8.1 el framework no deja pasar de la version doctrine/lexer 3.0 a 1, tiene dependencias como egualias/email-validator, voy a intentar con las version doctrine/lexer 2 y comento.

    • Jheyner David Ibagon hace 11 meses

      Me salieron esta alerta con doctrine/lexer 2.0; cabe decir que laravel 10 tenia instalado la version 3.0 con esto se bajo una version y sale lo siguiente…

       

      Generating optimized autoload files
      Class MercadoPago\OAuth located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/OAuth.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Invoice located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Invoice.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\MerchantOrder located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/MerchantOrder.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Plan located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Plan.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Refund located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Refund.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\POS located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/POS.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\DiscountCampaign located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/DiscountCampaign.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\CardToken located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/CardToken.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Chargeback located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Chargeback.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Track located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Track.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Payment located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Payment.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\PaymentMethod located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/PaymentMethod.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Documentation located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Documentation.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Item located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Item.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\TrackValues located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/TrackValues.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Payer located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Payer.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Tax located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Tax.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Preference located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Preference.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Subscription located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Subscription.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Preapproval located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Preapproval.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Card located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Card.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\InstoreOrder located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/InstoreOrder.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Shipments located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shipments.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Customer located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Customer.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\AdvancedPayments\AdvancedPayment located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/AdvancedPayments/AdvancedPayment.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\AdvancedPayments\Refund located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/AdvancedPayments/Refund.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\AdvancedPayments\DisbursementRefund located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/AdvancedPayments/DisbursementRefund.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\AuthorizedPayment located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/AuthorizedPayment.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\SearchResultsArray located in ./vendor/mercadopago/dx-php/src/MercadoPago/Generic/SearchResultsArray.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\RecuperableError located in ./vendor/mercadopago/dx-php/src/MercadoPago/Generic/RecuperableError.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\ErrorCause located in ./vendor/mercadopago/dx-php/src/MercadoPago/Generic/ErrorCause.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\MercadopagoSdkTest located in ./vendor/mercadopago/dx-php/tests/MercadoPagoSdkTest.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Track located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Track.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Payment located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Payment.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\PaymentMethod located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/PaymentMethod.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Documentation located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Documentation.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Item located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Item.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\TrackValues located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/TrackValues.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Payer located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Payer.php does not comply with psr-4 autoloading standard. Skipping.
      Class MercadoPago\Tax located in ./vendor/mercadopago/dx-php/src/MercadoPago/Entities/Shared/Tax.php does not comply with psr-4 autoloading standard. Skipping.
      > Illuminate\Foundation\ComposerScripts::postAutoloadDump
      > @php artisan package:discover --ansi
      
    • Brayan Miguel Oblitas Mejia hace 3 meses

      a mi tambien me salio, eso significa que esta bien o hay algun problema?

    • Victor Arana Flores hace 3 meses

      Hola Brayan, todo el curso se esta regrabando, así que te recomiendo que veas los nuevos videos que voy subiendo :D

      Estoy seguro que este enfoque que le daré al curso le gustará a la mayoría.

  • Angel David Velasco Bonifaz

    Angel David Velasco Bonifaz hace 1 año

    Estoy con el PHP mas actual y laravel, y ya me dejo instalar mercadolibre solo con el comando

    composer require “mercadopago/dx-php”

    • Victor Arana Flores hace 1 año

      Hola Angel. Genial, gracias por el dato.