mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Set plan_ended to false on paypal sub, and redirect properly
This commit is contained in:
parent
2c88c62cbc
commit
1ffcfb8487
1 changed files with 2 additions and 1 deletions
|
@ -159,9 +159,10 @@ get '/supporter/paypal/return' do
|
||||||
current_site.paypal_profile_id = paypal_response.profile_id
|
current_site.paypal_profile_id = paypal_response.profile_id
|
||||||
current_site.paypal_active = true
|
current_site.paypal_active = true
|
||||||
current_site.plan_type = 'supporter'
|
current_site.plan_type = 'supporter'
|
||||||
|
current_site.plan_ended = false
|
||||||
current_site.save_changes validate: false
|
current_site.save_changes validate: false
|
||||||
|
|
||||||
redirect '/supporter/thanks-paypal'
|
redirect '/supporter/thanks'
|
||||||
end
|
end
|
||||||
|
|
||||||
def paypal_recurring_hash
|
def paypal_recurring_hash
|
||||||
|
|
Loading…
Add table
Reference in a new issue