Class: OffsitePayments::Integrations::RealexOffsite::Return

Inherits:
Return
  • Object
show all
Defined in:
lib/offsite_payments/integrations/realex_offsite.rb

Instance Attribute Summary

Attributes inherited from Return

#notification, #params

Instance Method Summary collapse

Methods inherited from Return

#parse

Constructor Details

#initialize(data, options) ⇒ Return

Returns a new instance of Return.



844
845
846
847
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 844

def initialize(data, options)
  super
  @notification = Notification.new(data, options)
end

Instance Method Details

#cancelled?Boolean

TODO: realex does not provide a separate cancelled endpoint

Returns:

  • (Boolean)


854
855
856
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 854

def cancelled?
  false
end

#messageObject



858
859
860
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 858

def message
  notification.message
end

#success?Boolean

Returns:

  • (Boolean)


849
850
851
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 849

def success?
  notification.complete?
end