#gisho_02527
1 messages · Page 1 of 1 (latest)
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
Hi 👋
Do you mean you cannot import {loadStripe}?
sorry I mean loadStripe("MY_KEY") returns null
so I can't do the following
const elements = stripe.elements
And you are using your public key? pk_?
yeah in test mode
So pk_test_
Did you install both these packages? npm install --save @stripe/react-stripe-js @stripe/stripe-js
Stripe.js loading utility. Latest version: 2.1.9, last published: 2 days ago. Start using @stripe/stripe-js in your project by running npm i @stripe/stripe-js. There are 532 other projects in the npm registry using @stripe/stripe-js.
have both of these installed
working in Velo, wix's development environment
which supports JS and NodeJS
Okay, I don't know anything about Velo and cannot guanrantee that it is supporting loadStripe properly.
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
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
yeah so thought the elments would be a good workaround
would stripe hosted payment links be the only viable workaround?
No you should be able to use the Payment Element
I would recommend using the code we show in this guide exactly: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements&client=react#web-collect-payment-details
You can use that to get started and then, once it's working as you expect, you can modify it to suite your needs