Class: ActiveMerchant::Billing::Integrations::DirecPay::Return

Inherits:
Return
  • Object
show all
Defined in:
lib/active_merchant/billing/integrations/direc_pay/return.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.



8
9
10
# File 'lib/active_merchant/billing/integrations/direc_pay/return.rb', line 8

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

Instance Method Details

#messageObject



16
17
18
# File 'lib/active_merchant/billing/integrations/direc_pay/return.rb', line 16

def message
  notification.status
end

#success?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/active_merchant/billing/integrations/direc_pay/return.rb', line 12

def success?
  notification.complete?
end