:test_url self.production_url = 'https://example.com/xxx' self.test_url = 'https://example.com/yyy' def self.notification(post) Notification.new(post) end def self.service_url case OffsitePayments.mode when :production self.production_url when :test self.test_url end
end def transaction_id # Smile Pay 端訂單號碼 params['Smseid'] end # When was this payment received by the client. def received_at params['Process_date'] + params['Process_time'] end