Commit 4505001d by ivan Lan

Remove the wrong payment validation

parent a01c190f
......@@ -64,9 +64,9 @@ module Shotengai
# event :soft_delete
end
def before_pay
raise Shotengai::WebError.new('订单已过期 ,无法支付,请重新提交订单。', -1, 400) if cannot_pay
end
# def before_pay
# raise Shotengai::WebError.new('订单已过期 ,无法支付,请重新提交订单。', -1, 400) if cannot_pay
# end
def cannot_pay
Time.now > pay_deadline
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment