#darkon

1 messages · Page 1 of 1 (latest)

mint drumBOT
remote grove
sand apex
#

this is the correct syntax?

#

$stripe->prices->all('prod_NHAhMUlIqdu53I');

brisk fiber
#

no, it's more like $stripe->prices->all([product=>'prod_NHAhMUlIqdu53I')];

sand apex
#

ok great. So if i want show all products and his prices i have to call first products->all and then inside the for i have to call prices->all passing the id of the first api. Correct?

brisk fiber
#

depend what you're trying to do, you can call prices->all and pass expand=>["data.product"] to get the Product object returned in each Price

sand apex
#

ok thank you. Last question if i want to retrive payment link too, what should i do?

brisk fiber
#

what do you mean exactly?

sand apex
#

i created a payment link for each price. Can i get it from api?

brisk fiber
#

I don't see any way to make that link between the API objects unfortunately

sand apex
#

i don't want to make just show

#

this for example

brisk fiber
#

I don't understand what you're asking

sand apex
#

each price has a payment link associated. I can create easily from dashboard. I want to get that payment link from price api.

brisk fiber
#

yep and you can't as I said

#

I don't see any way to make that link between the API objects unfortunately

#

i.e. I can't see how you can go from a Price object to a corresponding PaymentLink

sand apex
#

here there is a price object with the corresponding payment link button

#

but ok api can't show it in this moment