laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.37k stars 670 forks source link

[15.x] Fetch all payment methods #1617

Closed driesvints closed 9 months ago

driesvints commented 9 months ago

Closed https://github.com/laravel/cashier-stripe/issues/1569

This PR changes the behaviour of the payment methods to fetch all payment method types, not just card ones. Previously, the Stripe API didn't allow you to do this and we were forced to always filter by a certain type so we chose "card" as a default as it's the most common one. But now we can offer a single way to fetch all payment methods for a customer in one go. This is useful for people to list these and not having to do multiple calls anymore to fetch each type separately.