#gisho_02527

1 messages · Page 1 of 1 (latest)

worldly stoneBOT
#

Hello gisho_02527, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• gisho_02527, 0 days ago, 12 messages

slim bronze
#

Hi 👋

Do you mean you cannot import {loadStripe}?

rocky blaze
#

sorry I mean loadStripe("MY_KEY") returns null

#

so I can't do the following
const elements = stripe.elements

slim bronze
#

And you are using your public key? pk_?

rocky blaze
#

yeah in test mode

slim bronze
#

So pk_test_

#

Did you install both these packages? npm install --save @stripe/react-stripe-js @stripe/stripe-js

rocky blaze
#
#

have both of these installed

#

working in Velo, wix's development environment

#

which supports JS and NodeJS

slim bronze
#

Okay, I don't know anything about Velo and cannot guanrantee that it is supporting loadStripe properly.

rocky blaze
#

What do you recommend if I need a custom checkout flow. We're currently using stripe api for everything but have the issue that we can't send raw credit card details to stripe

#

in live mode

slim bronze
#

Oh no you cannot do that. and you shouldn't without a major PCI audit

#

handling raw CC numbers exposes you to a mountain of legal risk

rocky blaze
#

yeah so thought the elments would be a good workaround

#

would stripe hosted payment links be the only viable workaround?

slim bronze
#

No you should be able to use the Payment Element

#

You can use that to get started and then, once it's working as you expect, you can modify it to suite your needs

rocky blaze
#

Okay thank you!

#

Much appreciated