#stripe101-price
1 messages · Page 1 of 1 (latest)
Invoices.
Gotcha - so there isn't really a great way to do this w/o storing some additional information. Without any changes, you'd have to list all the Invoice for that customer (https://stripe.com/docs/api/invoices/list#list_invoices-customer), iterate through all the invoices and check their line items to see if they have paid for a specific price
A better solution would be for you to store this information in your own databases (or maybe in the Customer's metadata) so you can get this information more easily
Even then though it seems I'd have to iterate over line-items since to know for sure if a Price was paid for we'd have to listen to the webhook for it. Is that right?