#Dara - React

1 messages · Page 1 of 1 (latest)

granite mauve
#

I think that's all you need to do. If Stripe.js loads on every page when your website/app loads then you're good to go. Note that it doesn't have to be initialized on every page, just loaded.

primal token
#

Hi Rubeus, I think the forum was moved from freenode right? I couldn't connect there today, I even created a IRC account. lol

granite mauve
#

Yeah, we've pretty much moved to Discord.

#

At least for now.

primal token
#

It's all good, freenode is an old platform anyway and not they even force people to register.

#

It seems in the doc that when you install the npm package stripejs, it loads every page? Just wanted to confirm to protect my site well.

#

I am using a hook for redirecting to checkout and that's where i loadStripe so i doubt that it loads on every page. Is there a way to validate if Stripe is loaded on every page?

granite mauve
#

I'm not that familiar with React, but you should be able to tell if Stripe.js is being loaded by looking at the developer tools in a web browser, under the Network tab.

primal token
#

Checking there right now

#

If i filter by "stripe", nothing returns 😦

#

Ok i added import '@stripe/stripe-js' in my root module file and now i see v3, m-outer..., inner.html and 6. So it does seem like we have to do both.

#

Doing this import {loadStripe} from '@stripe/stripe-js/pure' doesn't include in every page right?

burnt gulch
#

Let me check on that