#E-commerce Stripe API

22 messages · Page 1 of 1 (latest)

brazen escarp
#

Hello, I'm getting this error messages on my checkout page of my e-commerce website. I added the stripe api keys in my .env file but not sure why I'm getting this error

wild driftBOT
steel marsh
#

Hey, have you added your api keys without inverted commas?

brazen escarp
#

no i didn't put inverted commas but just to clarify the api keys are the one beginning with sk_test and pk_test right

steel marsh
#

yes

steel marsh
brazen escarp
#

so i would need to put it into a string like: STRIPE_SECRET_KEY="sk_test_abcd"?

steel marsh
#

without inverted commas

brazen escarp
#

yea i didn't put inverted commas

steel marsh
#

site is on local or dev

brazen escarp
#

wait i think i got it to work but i cant add the stripe product in the admin dashboard

#

i'm on dev

#

was able to add stripe product on local

steel marsh
#

cuz you have to add stripe keys on cloud

brazen escarp
#

do you where i do that?

steel marsh
#

settings

#

Environment Variables

brazen escarp
#

oh

#

i had a feeling i was missing that . I'll try that now

#

ok i got it to work thank you so much for your help and swift responses

steel marsh
#

you're welcome 😉

wild driftBOT
#

You do not have permission to mark this thread as solved. Only thread creators, contributors and payload team members can mark a thread as solved.