#videovillain
1 messages · Page 1 of 1 (latest)
Can you find the request to created those product on your Dashboard request log? https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
what would they be called?
Here are all 32
Sorry, it seems my teammate is responsible, I was not aware this teammate was currently doing this for webhook testing. Sorry for the trouble!
but actually, this has caused another problem
We have a frontend that grabs all products and all prices to display for the user (there were only 3 products with 6 prices)
but now there are so many and even though they are archived, they are still coming with the getallproducts call
is there a way to ignore archived ones so they don't even get pulled in the GET response?
When you call the API, can you try to filter only active one by this parameter? https://stripe.com/docs/api/products/list?lang=ruby#list_products-active
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
does that fit into here somehow?
$stripe = new \Stripe\StripeClient('sk_test_****');
$stripe->products->all(['limit' => 3]);
like:
$stripe = new \Stripe\StripeClient('sk_test_***');
$stripe->products->all(['limit' => 3, 'active' => true]);
or something of the like?
Yes actinve: true. Let's try it
Btw please redact/remode your secret key from above message
This is a public forum and you don't want anybody to see it, even if that's Test mode
That's from the stripe API example
so no worries
also
is that going to be the same for price?
The stripe example automatically takes your secret key
if you are logging in Dashboard
OHHHH
So please redact it
Hello again
Could I ask you another question
I am looking for a quick and easy way to archive a bunch of prices that were all made along with these products.
Currently the only way to do it that I can find is to individually enter each product and then archive the price on it... which is very tedious