Foros del Web » Programando para Internet » PHP »

Tengo un problema ps-4 con composer al instalar sdk de mercado pago en Laravel?

Estas en el tema de Tengo un problema ps-4 con composer al instalar sdk de mercado pago en Laravel? en el foro de PHP en Foros del Web. Estoy intentando instalar el sdk de mercado pago versión 2.4.1, pero me sale un error: Class MercadoPago\AdvancedPayments\AdvancedPayment located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\AdvancedPayments\AdvancedPaym ent.php does not comply with ...
  #1 (permalink)  
Antiguo 05/08/2021, 12:55
 
Fecha de Ingreso: junio-2010
Mensajes: 221
Antigüedad: 14 años, 5 meses
Puntos: 3
Tengo un problema ps-4 con composer al instalar sdk de mercado pago en Laravel?

Estoy intentando instalar el sdk de mercado pago versión 2.4.1, pero me sale un error:

Class MercadoPago\AdvancedPayments\AdvancedPayment located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\AdvancedPayments\AdvancedPaym ent.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\AdvancedPayments\DisbursementRefund located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\AdvancedPayments\Disbursement Refund.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\AdvancedPayments\Refund located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\AdvancedPayments\Refund.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\AuthorizedPayment located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\AuthorizedPayment.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Card located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Card.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\CardToken located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\CardToken.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Chargeback located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Chargeback.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Customer located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Customer.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\DiscountCampaign located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\DiscountCampaign.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\InstoreOrder located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\InstoreOrder.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Invoice located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Invoice.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\MerchantOrder located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\MerchantOrder.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\OAuth located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\OAuth.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Plan located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Plan.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\POS located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\POS.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Preapproval located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Preapproval.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Preference located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Preference.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Refund located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Refund.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Documentation located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\Documentation.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Item located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\Item.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Payer located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\Payer.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Payment located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\Payment.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\PaymentMethod located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\PaymentMethod.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Tax located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\Tax.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Track located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\Track.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\TrackValues located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shared\TrackValues.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Shipments located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Shipments.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Subscription located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Entities\Subscription.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\ErrorCause located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Generic\ErrorCause.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\RecuperableError located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Generic\RecuperableError.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\SearchResultsArray located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago\Generic\SearchResultsArray.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\MercadopagoSdkTest located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/tests\MercadoPagoSdkTest.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Documentation located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\Documentation.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Item located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\Item.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Payer located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\Payer.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Payment located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\Payment.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\PaymentMethod located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\PaymentMethod.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Tax located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\Tax.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\Track located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\Track.php does not comply with psr-4 autoloading standard. Skipping. Class MercadoPago\TrackValues located in D:/xampp/htdocs/laravel8_ecomerce/blog/vendor/mercadopago/dx-php/src/MercadoPago/Entities\Shared\TrackValues.php does not comply with psr-4 autoloading standard. Skipping

He estado buscando como resolverlo, encontré que debía modificar el autoload para que rutee bien la clase, pero no obtengo resultado. Por default el autoload viene de la siguiente manera

Cita:
"autoload": {
"psr-4": {
"MercadoPago\\": [
"src/MercadoPago/",
"tests/",
"src/MercadoPago/Generic/",
"src/MercadoPago/Entities/",
"src/MercadoPago/Entities/Shared/"
]
}
Yo he modificado una de las rutas de diversas formas para ver si la primera línea del error desaparecía y así buscar arreglar las otras, pero no he tenido resultado, sigue saliendo el mismo error

Cita:
"psr-4": {
"MercadoPago\\": [
"vendor/mercadopago/dx-php/src/MercadoPago/",
"tests/",
"src/MercadoPago/Generic/",
"vendor/mercadopago/dx-php/src/MercadoPago/Entities/",
"src/MercadoPago/Entities/Shared/"
]
}
https://github.com/jofret/problema-p...ago-en-laravel

Última edición por rafret; 05/08/2021 a las 12:56 Razón: añadir enlace a git hub

Etiquetas: mercadopago
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:47.