class OffsitePayments::Integrations::SagePayForm::Return
Public Class Methods
new(query_string, options)
click to toggle source
# File lib/offsite_payments/integrations/sage_pay_form.rb, line 412 def initialize(query_string, options) begin @notification = Notification.new(query_string, options) rescue Notification::CryptError => e @message = e.message end end
Public Instance Methods
cancelled?()
click to toggle source
# File lib/offsite_payments/integrations/sage_pay_form.rb, line 424 def cancelled? @notification && @notification.cancelled? end
message()
click to toggle source
# File lib/offsite_payments/integrations/sage_pay_form.rb, line 428 def message @message || @notification.message end
success?()
click to toggle source
# File lib/offsite_payments/integrations/sage_pay_form.rb, line 420 def success? @notification && @notification.complete? end