Compare commits
No commits in common. "72dd6c77385eb14f3ce73839737662606afdb351" and "9ae944bde3449ac42cdd5129b16526aba01e7add" have entirely different histories.
72dd6c7738
...
9ae944bde3
@ -226,7 +226,7 @@ class Public::JoinsController < ApplicationController
|
|||||||
|
|
||||||
@api = PayPal::SDK::Merchant.new
|
@api = PayPal::SDK::Merchant.new
|
||||||
if @api.ipn_valid?(request.raw_post) # return true or false
|
if @api.ipn_valid?(request.raw_post) # return true or false
|
||||||
@sheet = Sheet.find_by_token(params[:custom].to_s)
|
@sheet = Renew.find_by_token(params[:custom].to_s)
|
||||||
if params[:payment_status] == "Completed"
|
if params[:payment_status] == "Completed"
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,9 +34,6 @@ class Renew < ActiveRecord::Base
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
true
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
YEAR = 2019
|
YEAR = 2019
|
||||||
@ -52,7 +49,6 @@ class Renew < ActiveRecord::Base
|
|||||||
self.return_done = true
|
self.return_done = true
|
||||||
self.save
|
self.save
|
||||||
else
|
else
|
||||||
puts sheet_year.errors.messages
|
|
||||||
false
|
false
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -18,7 +18,6 @@ class SheetYear < ActiveRecord::Base
|
|||||||
|
|
||||||
before_validation do
|
before_validation do
|
||||||
self.gift_year = false if !self.gift_year
|
self.gift_year = false if !self.gift_year
|
||||||
true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -41,8 +40,6 @@ class SheetYear < ActiveRecord::Base
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
true
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user