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.



476
477
478
479
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 476

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)


486
487
488
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 486

def cancelled?
  false
end

#messageObject



490
491
492
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 490

def message
  notification.message
end

#success?Boolean

Returns:

  • (Boolean)


481
482
483
# File 'lib/offsite_payments/integrations/realex_offsite.rb', line 481

def success?
  notification.complete?
end