rest - Stripe API - Receipts Listing -
rest - Stripe API - Receipts Listing -
i'm using stripe api , i'd nowadays customer's list of invoice history along relevant receipts.
i can't find anywhere in stripe api (https://stripe.com/docs/api?lang=php) allows me fetch list of customer's receipts. there i'm missing?
each invoice includes charge property contains id of lastly charge. either current/final payment effort (for invoices not paid) or successful payment (for paid invoices).
this allows utilize charge , invoice info nowadays receipt user, "receipt" more of application-side notion; needs , presentation vary application.
once you've got data, can nowadays receipt like.
ideally, recommend caching these records locally. it's painless if you're receiving webhooks. can model (and search!) local receipt record best fits needs, client gets benefit of fast billing display, , benefit of less load on stripe's api endpoints.
rest stripe-payments
Comments
Post a Comment