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

Make card default for subscriptions via Stripe checkout #1674

Closed sts-ryan-holton closed 3 months ago

sts-ryan-holton commented 3 months ago

Hi, this is a feature suggestion. I've just migrated over to the Stripe checkout flow. I'm using the new subscription method and sending the user to the Stripe checkout, but after filling in their payment methods it doesn't look like there's a default payment method attached so they likely won't be auto charged the next month?

driesvints commented 3 months ago

The payment method is set on the subscription directly which will be used for the recurring payments.

Screenshot 2024-05-03 at 15 48 48
sts-ryan-holton commented 3 months ago

Ah right. So when calling newSubscription()->checkout() and sending the user to the Stripe checkout, upon entering payment details it will automatically charge that card each billing cycle?

driesvints commented 3 months ago

yeah, stripe adds that to the subscription rather than the customer.