#kevinx-loadstripe-promise

1 messages · Page 1 of 1 (latest)

prisma sunBOT
maiden plinth
#

Hi there

vital hedge
#

Hello there 🙂

maiden plinth
#

So yeah we still recommend initializing Stripe.JS on your site for fraud prevention

vital hedge
#

Got you, thanks!

maiden plinth
#

Sure!

vital hedge
#

so const stripe = await stripePromise; is not needed

prisma sunBOT
maiden plinth
#

No sorry. You do want that.

#

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

vital hedge
#

Got you, thanks, what if I need to use stripe on the front end

#

such as pulling some price data

fluid timber
#

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

vital hedge
#

Got you, thank you very much!