#Jayy

1 messages ยท Page 1 of 1 (latest)

white wingBOT
plain stream
fallen minnow
#

yeah i found the one in dashboard. was just wondering because i want to automate my test environment with stripe with creating all the products whenever i run a reset on the data. i guess i'll have to just delete them manually every time ๐Ÿ™‚

plain stream
#

Our recommendation is to just stub the data in test suites as opposed to querying the API

fallen minnow
#

could you please explain this more?

plain stream
#

Which part specifically? The idea is you'd just have fake/stubbed data that your tests run against, as opposed to running directly against the API and relying on responses returned

fallen minnow
#

oh alright ๐Ÿ™‚
1 more question please. If i am getting a product as such

const product = await stripe.products.retrieve('prod_O0UggiOG7AcbZC')

can i expand the price list of this product? because as i see from the response there's nothing related to the price except for the default_price which, when expanded, will only get me the default one ..

plain stream
fallen minnow
#

Oooo okay, thank you for your help ๐Ÿ™‚