#xcoder - runtime error
1 messages · Page 1 of 1 (latest)
okok
Looking
ok thanks
Ah ok. So you're just using the publishable key when you should be using the secret key
Requests from your backend server, like creating a checkout session, need to be made with the secret key
The link in that error message will show you where to find your secret key in the dashboard
I have my secret key
But i don't know how to use it
I'm using stripe for the first time
What guide are you following to use Stripe Checkout and create Checkout sessions?
I am following a youtube video
Can you link it?
Want to know how you're structuring your code first of all
There's different strategies to implement Checkout
Too difficult? 👉 Watch my REACT BASICS 101 class for FREE with 1 month FREE Skillshare access (First 1000 people): https://skl.sh/2Srfwuf
🚨 Join the world’s BEST developer community “Zero to Full Stack Hero” NOW: https://www.papareact.com/course
Join me on Day 4 of 5 of the 5-DAY AMAZON CHALLENGE where we build the following:
👉 Payment Proce...
And ge just added stripePromise = load(public_key)
Its my repo
You can check it
This needs to be secret key. It's a back-end call: https://github.com/4mohdisa/amazon-2.0-/blob/main/src/pages/api/create-checkout-session.js#L1
Also I recommend following our internal guides: https://stripe.com/docs/checkout/quickstart and https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout