#andrea-subscription

1 messages · Page 1 of 1 (latest)

tacit basalt
still geyser
#

ok, so like this right?

#

$stripe->invoices->all(['subscription' => $sub_id]);

tacit basalt
#

Yes, and they you would need to only count invoices with status paid I guess.

still geyser
#

ok, the previous call will return even the invoice status, or i need to do another call to get invoice details?

tacit basalt
#

You could do that in one call. Something like:

$stripe->invoices->all(['subscription' => $sub_id, 'status' => 'paid']);
And it will return all invoices with their details.