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.



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

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)


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

def cancelled?
  false
end

#messageObject



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

def message
  notification.message
end

#success?Boolean

Returns:

  • (Boolean)


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

def success?
  notification.complete?
end