Set plan_ended to false on paypal sub, and redirect properly

This commit is contained in:
Kyle Drake 2016-10-18 15:26:39 -05:00
parent 2c88c62cbc
commit 1ffcfb8487

View file

@ -159,9 +159,10 @@ get '/supporter/paypal/return' do
current_site.paypal_profile_id = paypal_response.profile_id
current_site.paypal_active = true
current_site.plan_type = 'supporter'
current_site.plan_ended = false
current_site.save_changes validate: false
redirect '/supporter/thanks-paypal'
redirect '/supporter/thanks'
end
def paypal_recurring_hash