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

Implement new proration behaviour #902

Closed driesvints closed 4 years ago

driesvints commented 4 years ago

The old proration behaviour has been deprecated. We should look into the new api changes and implement them.

driesvints commented 4 years ago

Some extra resources:

https://stripe.com/docs/billing/subscriptions/pending-updates https://stripe.com/docs/billing/subscriptions/billing-cycle#prorations https://stripe.com/docs/billing/subscriptions/prorations

driesvints commented 4 years ago

I've sent in a PR for this here: https://github.com/laravel/cashier/pull/909

As said in the pr: I've made the decision to not make use of the always_invoice value and pending updates for now. I think we can apply that on the swapAndInvoice method but there's all sorts of complications when doing it which I'd rather investigate at a different time.