#lemmiwinks_best-practices

1 messages ยท Page 1 of 1 (latest)

stray swanBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1332021302537617600

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

thorny rivet
#

Hello

final lodge
#

Gotcha, that link doesn't load for me BTW but if this follows best practices then we'll continue forward.

I'd use the side effect of the global import if we were using Vue specifically and had a main.ts/js file but with Nuxt I think having the script tag globally makes it a bit easier if the stripe module is smart enough not to double inject ๐Ÿ™‚

thorny rivet
#

Sorry I edited the link

#

Dropped the wrong one in there previously.

#

That said, makes sense!

final lodge
#

Gotcha, all good, that's the docs I showed my partner dev, we're switching from recurly to stripe for our business and ant to do this right the first time ๐Ÿ˜… Thank you for the help!

thorny rivet
#

In terms of double injection... you would actually need to test that.

#

But I think it should work as expected!

final lodge
#

When I go to our checkout page I only see one script tag included when calling loadStripe and having the script in our nuxt config head so i think we're good

thorny rivet
#

Yep that's what I would expect

#

๐Ÿ‘

final lodge
#

thanks for the help, I think we're all good here then