#Enema-setup-intent
1 messages ยท Page 1 of 1 (latest)
Hi!
Can you move the attached image to the thread so that we can keep all context here? ๐
thanks
Here you go.
For 1/ Are you using any Stripe JS Elements for your integration? If so, how are you initializing Stripe? Are you sure you're using the right keys?
For 2/ It seems like your site is initialized with Test mode keys rather than live mode. It would also explain 1/
Is this site public? If so, can you share the URL?
Yes.
working one: beta.reachlink.com
incorrect one: app1.reachlink.com
- is registering as a client.
- is registering as a therapist
Okay so on app1.reachlink.com site, you're initializing Stripe with your test mode publishable key
pk_test_51K3bAl.....Na4DJTl1
That's why
1/ It isn't able to find the SetupIntent which is likely created in live mode
2/ It launches connect onboarding in test mode
you want to switch it out with your live mode key pk_live_xxxxx
The working one beta.reachlink.com is using your live key
One other thing I want to call out and which you should fix urgently is your exports are leaking a portion of your secret key (sk_live...)
REACT_APP_AWS_STRIPE_SECRET_KEY
I'd highly recommend fixing the exports and rolling your secret key as soon as possible.
you should never include/save your secret key anywhere on your front-end