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