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

Handling multiplan subscriptions at Stripe #397

Closed jurihub closed 4 years ago

jurihub commented 7 years ago

Stripe handles multiple plans included in one subscription (they are subscription items). This is useful because this way the customer will see only one debit on their bank account for every billing cycle instead of seeing one for every subscribed plan. Eg. if your customer is subscribed to a main service plus 4 features, they will get 5 debits every month. This is bad for service providers because (a) it is ugly (b) it is more expensive due to the fix fees. For more details, cf. https://stripe.com/docs/subscriptions/multiplan

Implementation ideas:

joegarbett commented 7 years ago

Is it possible for someone to review this? Else I will implement it myself?

jurihub commented 7 years ago

FYI we created a pull request for this issue and we've been using our fork successfully since than ( https://github.com/laravel/cashier/pull/398 ). We've also added SEPA Direct Debit as a new payment method recently.

timothyallan commented 6 years ago

@jurihub Is your fork working with 5.5? I'm quite keen to get multiple plans going.

jurihub commented 6 years ago

We didn't test it under 5.5 yet. But it should work

educolo commented 6 years ago

Someone tested this on Laravel 5.5 ? I didn't see any news on the official package also

user3579 commented 6 years ago

hi @jurihub , can you describe how to use your fork for multiplan subscription? thanks.

Abhi0725 commented 6 years ago

@taylorotwell Please accept this pull request.

driesvints commented 5 years ago

We're still open for PRs for this.

tanthammar commented 5 years ago

@taylorotwell please implement this

gvnn commented 5 years ago

This feature will be also useful for testing with https://github.com/stripe/stripe-mock which provides a quick mock http server. Currently requests to the subscription endpoint is rejected because plan and quantity properties are not allowed.

basepack commented 5 years ago

@taylorotwell @driesvints Any update on this PR, maybe it now fits in Cashier better?

driesvints commented 5 years ago

Unfortunately not. Currently focusing on the upcoming v10 and SCA compatibility.

mwienk commented 5 years ago

@driesvints any updates on this? It looks like items is a required field on the subscription creation: https://stripe.com/docs/api/subscriptions/create, does that mean it can be added?

samuelhautcoeur commented 4 years ago

@taylorotwell @driesvints Also very interested in this. Please consider it.

signvikas commented 4 years ago

@taylorotwell Please accept this feature request.

taylorotwell commented 4 years ago

Locking to get rid of additional "please do this" comments which are just clutter.

driesvints commented 4 years ago

It has begun: https://github.com/laravel/cashier/pull/900

driesvints commented 4 years ago

The PR got merged and will be in v11