#kevinx-loadstripe-promise
1 messages · Page 1 of 1 (latest)
Hi there
Hello there 🙂
So yeah we still recommend initializing Stripe.JS on your site for fraud prevention
Got you, thanks!
Sure!
so const stripe = await stripePromise; is not needed
No sorry. You do want that.
We discuss this here: https://stripe.com/docs/stripe-js/react#elements-provider
That async loads the Stripe.JS script
Which contains fraud detection signals
Even if you aren't actually using stripe in your code after you have initialized it
Got you, thanks, what if I need to use stripe on the front end
such as pulling some price data
Stripe.js doesn't really know anything about price data and can't pull that kind of stuff
all of that is done on your server with your secret API key instead
kevinx-loadstripe-promise
Got you, thank you very much!