#tcyphil
1 messages ยท Page 1 of 1 (latest)
๐ 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
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! ๐
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