#BBQ - API Keys
1 messages · Page 1 of 1 (latest)
Hello again! Can you provide more details? Not sure I understand the question.
You can get your API keys from the Stripe Dashboard: https://dashboard.stripe.com/apikeys
You want to determine if an API key is a live mode or test mode key in your code you mean?
Most live mode API keys start with sk_live_ and most test mode API keys start with sk_test_. Some very old API keys may not start with either of those. The best way to tell for sure is to make an API request and see if livemode is set to true or false in the response.
You could do something like retrieve the balance: https://stripe.com/docs/api/balance/balance_retrieve