Error Checkout PRO #11
-
Thanks for examples. I had a problem when tested Checkout PRO example. Can't open mercadopago window. I used localhost <script src="https://sdk.mercadopago.com/js/v2"></script> <script> const mp = new MercadoPago('PUBLIC_KEY', { locale: 'en-US' }) const checkout = mp.checkout({ preference: { id: 'YOUR_PREFERENCE_ID' } }); checkout.render({ container: '.cho-container', label: 'Pay' }); </script>Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @edsongomes1 ! Please make sure you have configured your credentials and If you have any more questions or issues with the integration feel free to reply to this with more information on the matter. |
Beta Was this translation helpful? Give feedback.
-
how can you configure your preferenceId? I didn't find anything about that |
Beta Was this translation helpful? Give feedback.
Hi @edsongomes1 !
Please make sure you have configured your credentials and
preferenceId
accordingly, as well as check that you have an existing element that can serve as a container for the checkout's payment button with a className that matches the one you are passing as a param to therender
object (in this case it should be "cho-container").If you have any more questions or issues with the integration feel free to reply to this with more information on the matter.