#johnblythe

1 messages ยท Page 1 of 1 (latest)

vast terraceBOT
median sable
#

Hello ๐Ÿ‘‹
Are you asking about livemode parameter returned by an endpoint? If so, yes.

The parameter is set based on what type of API key was used to make the request (i.e. Test API key OR Live API Key)

thin seal
#

i am (i think ๐Ÿ˜… ). we have an interface for staff to create products and prices. i'd like those to be made in test mode. after confirming that things test out fine the hope is that they'd be able to promote it (via the same interface, connected through the API) rather than having to give everyone access to Stripe's dashboard directly. does that make sense?

#

or the copy to live mode functionality, is that in the API and i'm overlooking it?

median sable
#

Ah okay okay!
"Copy to live mode" is a dashboard only feature. You'd need to create these products and prices again by calling the API in live mode.

thin seal
#

blarg. ok, so we'd do something like fetch the test product data, remove things like id, and then post that data to the live mode API to replicate it that way, eh?

median sable
#

yup, that should work

thin seal
#

alrighty, ty

median sable
#

NP! ๐Ÿ™‚ Happy to help

thin seal
#

๐Ÿ™ have a good one-

median sable
#

You too!