I’m creating a JAMstack ecommerce site in Nuxt - Universal mode. For that i’m implementing a latin american payment solution called MercadoPago. My best option was the Checkout-pro implementation:
which consists in an script tag that generates a button within a form tag in html. This button opens a modal from the service with all the shopping-order data-preference-id.
<form method="POST"> <script src="https://www.mercadopago.com.ar/integrations/v1/web-payment-checkout.js" data-preference-id='<%= global.id %>'> </script> </form>
This works absolutely fine in localhost, but when i deploy the script seems not to be rendering anything, and it shows just an empty form tag.
I tried using the tag from nuxt. and I even tested deploying the form in a plain http file.
Do you have any idea what is going on with that scrip tag? I bet iis something basic, but again, I still newbie.
Thanks in advance!