#videovillain

1 messages · Page 1 of 1 (latest)

lament tartanBOT
pliant kite
olive oasis
#

what would they be called?

#

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?

pliant kite
olive oasis
#

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?

pliant kite
#

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

olive oasis
#

That's from the stripe API example

#

so no worries

#

also

#

is that going to be the same for price?

pliant kite
#

The stripe example automatically takes your secret key

#

if you are logging in Dashboard

olive oasis
#

OHHHH

pliant kite
#

So please redact it

olive oasis
#

didn't know that, lol

#

Thanks for the help!

olive oasis
#

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

pliant kite
#

I think you can write a script to update all them to active = false

#

You probably needs the list first