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 667 forks source link

paymentMethods not returning bank accounts #1681

Closed azazulia closed 2 months ago

azazulia commented 2 months ago

Cashier Stripe Version

15.3.2

Laravel Version

10.48.13

PHP Version

8.3.4

Database Driver & Version

No response

Description

I'm attempting to pull all of a stripe user's associated payment methods, which include credit cards and ACH bank accounts. This method will return cards is called paymentMethods('card'), but will not return just bank accounts through paymentMethods('us_bank_account') or all associated payment methods using just paymentMethods().

Steps To Reproduce

Call paymentMethods() on a billable model instance with both associated credit cards and associated bank accounts.

driesvints commented 2 months ago

Hi @azazulia. That's strange as I'd also expect this to return bank accounts. Unfortunately this isn't something I can help with as we use the https://docs.stripe.com/api/payment_methods/list endpoint behind the scenes. If that API endpoint isn't returning this then this is something for Stripe Support so please contact them. Please do let me know what they respond so I can help you and others better in the future. Thanks