#tcyphil

1 messages ยท Page 1 of 1 (latest)

outer plinthBOT
elfin lily
#

๐Ÿ‘‹ happy to help

#

every response you get from an API request to Stripe has the livemode property set to either true or false

#

but even before that

#

what decides whether this is a live or test mode request is the API keys you're using

crude seal
#

Ok great!
I know for the API keys, but I did not want to use them as "hard coded" values in source code, so I was looking for another way to find this information.

#

Thanks for help, I think the livemode property will do exactly what I was looking for ๐Ÿ™‚

#

Have a nice day! ๐Ÿ˜

elfin lily
#

I know for the API keys, but I did not want to use them as "hard coded" values in source code, so I was looking for another way to find this information.
you should be using enviroment variables for this