Class: OffsitePayments::Integrations::DirecPay::Return

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

Instance Attribute Summary

Attributes inherited from Return

#notification, #params

Instance Method Summary collapse

Methods inherited from Return

#cancelled?, #parse

Constructor Details

#initialize(post_data, options = {}) ⇒ Return

Returns a new instance of Return.



291
292
293
# File 'lib/offsite_payments/integrations/direc_pay.rb', line 291

def initialize(post_data, options = {})
  @notification = Notification.new(post_data, options)
end

Instance Method Details

#messageObject



299
300
301
# File 'lib/offsite_payments/integrations/direc_pay.rb', line 299

def message
  notification.status
end

#success?Boolean

Returns:

  • (Boolean)


295
296
297
# File 'lib/offsite_payments/integrations/direc_pay.rb', line 295

def success?
  notification.complete?
end