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

Method hasPaymentMethod returns false if Stripe Link is enabled #1663

Closed jonathanroy closed 5 months ago

jonathanroy commented 5 months ago

Cashier Stripe Version

14

Laravel Version

10

PHP Version

8.3

Database Driver & Version

No response

Description

When a client adds a payment method via the Stripe billing portal, he is prompted whether to enable Stripe Link (https://stripe.com/en-ca/payments/link).

If he accepts, the payment method works, but the method hasPaymentMethod() returns false.

However, the hasDefaultPaymentMethod() method works fine and returns true.

Steps To Reproduce

Create a user Redirect to the Stripe billing portal Add a payment method and enable "Link" Test: $user->hasPaymentMethod()

driesvints commented 5 months ago

Hey there,

Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so, please open up a new issue and we'll help you out.

Thanks!