Home

Issue: 241

Using external scripts?

[issue link]

I’m looking to integrate a custom Stripe payment page into a Nuxt project. In their docs it says to include their library via a script tag in your page head/footer:

<script type="text/javascript" src="https://js.stripe.com/v2/"></script>

How would I handle this with Nuxt seen as their docs states that “Stripe.js should always be loaded directly from this URL: https://js.stripe.com/v2/”, my first instinct was to just drop a script tag in my default layout template but this doesn’t seem to work?

Is there a way I can do this correctly?

This question is available on Nuxt.js community (#c205)