Comments (2)
Hi there. The current behaviour is the wanted one imo. I don't think that changing the default payment method on the customer should update the payment method on all of the existing subscriptions. We could add a new method on the subscription model maybe to update that payment method as well but I don't think that the current updateDefaultPaymentMethod
method should automatically change the PM for a subscription as those are two separate concerns.
from cashier-stripe.
Hi @driesvints
I don't really know what is the default payment method used for. Stripe sets the default payment method on the subscription by default, which always overrides the default payment method of the customer.
Maybe I'm not aware of the various use cases but for subscriptions I really can't come up with a way to have any use in the Customer's default payment method.
I think it's not the best approach by Stripe in the first place. I understand Cashier is just a wrapper on an existing API and I agree that Cashier should at least have an additional method for changing Subscription's payment method.
It was easy to create an event handler with:
$subscription = $billable->subscription();
$subscription->updateStripeSubscription([
'default_payment_method' => $newPaymentMethodId,
]);
But the time it took me to debug and research why my default payment method is not charged by default is definitely a huge waste of time, especially for people who use Cashier and/or Stripe API for the first time.
from cashier-stripe.
Related Issues (20)
- Payment behavior isn't being passed on like proration behavior is when updating the quantity from the subscription HOT 1
- New subscription: The payment attempt failed because additional action is required before it can be completed. HOT 1
- Add support for quote HOT 2
- Dynamic Tax Rates for Subscriptions HOT 4
- Improvement: End the generic trial instead of clearing it when a subscription is started HOT 1
- Confirm payment screen not processing payment correctly HOT 1
- Use of anchorBillingCycleOn() for subscription checkout HOT 3
- Method hasPaymentMethod returns false if Stripe Link is enabled HOT 1
- check if user is subscribed? documentation says this should work? HOT 1
- Bug finding payment method causing error on payment.blade.php HOT 2
- Migrations do not create foreign key in "subscription_items" to "subscriptions" table HOT 1
- It would be great if Cashier had events HOT 5
- Trait method 'allowPromotionCodes' will not be applied because it collides with 'PerformsCharges' HOT 1
- Support for upcoming changes to Stripe Prefilling saved cards in Checkout HOT 3
- Support for additional important Stripe signals for fraud detection HOT 1
- trial_ends_at is getting marked as NULL when webhook is received HOT 3
- Make card default for subscriptions via Stripe checkout HOT 3
- Confirm Payment notification never sent HOT 2
- Support for new usage Meters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cashier-stripe.