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 409 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 421 def cancelled? @notification && @notification.cancelled? end
message()
click to toggle source
# File lib/offsite_payments/integrations/sage_pay_form.rb, line 425 def message @message || @notification.message end
success?()
click to toggle source
# File lib/offsite_payments/integrations/sage_pay_form.rb, line 417 def success? @notification && @notification.complete? end