Class: OffsitePayments::Integrations::Realex::Return

Inherits:
Return
  • Object
show all
Defined in:
lib/offsite_payments/integrations/realex.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


273
274
275
276
# File 'lib/offsite_payments/integrations/realex.rb', line 273

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


283
284
285
# File 'lib/offsite_payments/integrations/realex.rb', line 283

def cancelled?
  false
end

#messageObject


287
288
289
# File 'lib/offsite_payments/integrations/realex.rb', line 287

def message
  notification.message
end

#success?Boolean


278
279
280
# File 'lib/offsite_payments/integrations/realex.rb', line 278

def success?
  notification.complete?
end