RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

Cannot cancel trialing subsciption #75

Closed kevindewalt closed 9 years ago

kevindewalt commented 11 years ago

Suggest changing cancel_subscription to allow people to cancel trialing subscription:

def cancel_subscription ... if (customer.subscription.status == 'active' or customer.subscription.status == 'trialing') ...
end

timrwilliams commented 11 years ago

I'd highly recommend changing this. Currently if you used this project as a reference implementation and somebody cancelled during their trial period then they would still be eternally billed by Stripe but your app would have no information about them in the database.

blakerson commented 10 years ago

I'm new to Github communication, so forgive me if it's out of etiquette to basically say "+1," but I agree that this is a pretty big issue for apps that choose to allow trial periods.

I have an app in production that almost continued charging an early customer.

Inserting the modified condition suggested by @kevindewalt appears to fix the problem for me.

DanielKehoe commented 9 years ago

There is a new version of this application for Rails 4.2 using the Payola gem.