#uzair.mustafa-dashboard-testmode

1 messages ยท Page 1 of 1 (latest)

robust badger
#

Hi ๐Ÿ‘‹ your Stripe account has two "sides" of it, testmode and livemode. When the testmode toggle is on in the dashboard, then you are viewing testmode data and any actions you take will create/update objects in testmode.

The toggle does not impact whether your account is able to function in livemode, it only impacts what objects you see/interact with via the Stripe dashboard.

last vine
#

What do you mean by " any actions you take will create/update objects in testmode."

#

so if I enable the test mode toggle, and someone on the live environment makes a purchase, its API call or data etc information will be created on the test environment?

#

or it's only going to show me data related to test environment?

robust badger
#

Nope, the toggle does not impact the API at all, it only affects what you're seeing/interacting with in the dashboard.

Whether the API makes changes in testmode or livemode is determined by the API key that is provided when it is initialized. If the API is provided a live key (sk_live_xxx) then it will doing everything in livemode. If a test key is provided instead (sk_test_xxx) then it will operate in testmode.
https://stripe.com/docs/api/authentication

last vine
#

I see, thanks

robust badger
#

Any time, happy to help!