mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
reset plan type after paypal cancel
This commit is contained in:
parent
b967093ba7
commit
9170f9f99c
2 changed files with 2 additions and 1 deletions
2
Gemfile
2
Gemfile
|
@ -25,7 +25,7 @@ gem 'thread'
|
|||
gem 'scrypt'
|
||||
gem 'rack-cache'
|
||||
gem 'rest-client', require: 'rest_client'
|
||||
gem 'addressable'
|
||||
gem 'addressable', require: 'addressable/uri'
|
||||
gem 'paypal-recurring', require: 'paypal/recurring'
|
||||
gem 'geoip'
|
||||
gem 'io-extra', require: 'io/extra'
|
||||
|
|
|
@ -193,6 +193,7 @@ get '/plan/paypal/cancel' do
|
|||
ppr = PayPal::Recurring.new profile_id: parent_site.paypal_profile_id
|
||||
ppr.cancel
|
||||
|
||||
parent_site.plan_type = nil
|
||||
parent_site.paypal_active = false
|
||||
parent_site.paypal_profile_id = nil
|
||||
parent_site.paypal_token = nil
|
||||
|
|
Loading…
Add table
Reference in a new issue