laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.39k stars 679 forks source link

Allow cancelNow() to prorate #974

Closed tpavlek closed 4 years ago

tpavlek commented 4 years ago

When calling cancelNow() it would seem, at least from our use case that you always want to prorate the remaining time on the subscription, but it does not take any options.

Is there a design reason why we can't pass a $prorate or $refund option to cancelNow() (or have something like cancelNowWithProration())?

Would a pull request for something like this be something the team is amenable to? Don't want to build it if it'll be rejected out of hand.

driesvints commented 4 years ago

I'll pr something

driesvints commented 4 years ago

https://github.com/laravel/cashier-stripe/pull/975