mercadopago / checkout-payment-sample

Using Checkout PRO to process payments
154 stars 138 forks source link

Uncaught Error: MercadoPago.js could not be loaded #11

Open RecoX opened 2 years ago

RecoX commented 2 years ago

No puedo usar el sitio de demo, no puede cargar el js

Uncaught Error: MercadoPago.js could not be loaded value https://sdk.mercadopago.com/js/v2:1

https://sdk.mercadopago.com/js/v2:1 file:///C:/Users/daleboca/Desktop/checkout-payment-sample/client/js/index.js:3
C0t300 commented 2 years ago

Did you check the console? I had the same issue and it was related to some placeholders you have to change on the top of the client/js/index.js file, which had public key and locale to some invalid values. After changing them everything worked fine.