Class: ActiveMerchant::Billing::Integrations::DirecPay::Return
- Defined in:
- lib/active_merchant/billing/integrations/direc_pay/return.rb
Instance Attribute Summary
Attributes inherited from Return
Instance Method Summary collapse
-
#initialize(post_data, options = {}) ⇒ Return
constructor
A new instance of Return.
- #message ⇒ Object
- #success? ⇒ Boolean
Methods inherited from Return
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, = {}) @notification = Notification.new(treat_failure_as_pending(post_data), ) end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/active_merchant/billing/integrations/direc_pay/return.rb', line 16 def notification.status end |
#success? ⇒ Boolean
12 13 14 |
# File 'lib/active_merchant/billing/integrations/direc_pay/return.rb', line 12 def success? notification.complete? end |