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


296
297
298
299
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 296

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


306
307
308
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 306

def cancelled?
  false
end

#messageObject


310
311
312
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 310

def message
  notification.message
end

#success?Boolean


301
302
303
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 301

def success?
  notification.complete?
end