#Jayy
1 messages ยท Page 1 of 1 (latest)
There's no API to do that, but you can via the Dashboard: https://dashboard.stripe.com/test/developers
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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 ๐
Our recommendation is to just stub the data in test suites as opposed to querying the API
could you please explain this more?
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
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 ..
You cannot. You'd list the prices instead, and pass the product param: https://stripe.com/docs/api/prices/list#list_prices-product
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oooo okay, thank you for your help ๐