Class: ActiveMerchant::Billing::Integrations::Dwolla::Return

Inherits:
Return
  • Object
show all
Defined in:
lib/active_merchant/billing/integrations/dwolla/return.rb

Instance Attribute Summary

Attributes inherited from Return

#notification, #params

Instance Method Summary collapse

Methods inherited from Return

#cancelled?, #initialize, #message, #parse

Constructor Details

This class inherits a constructor from ActiveMerchant::Billing::Integrations::Return

Instance Method Details

#callback_success?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 31

def callback_success?
  params['postback'] != "failure"
end

#checkout_idObject



19
20
21
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 19

def checkout_id
  params['checkoutid']
end

#errorObject



11
12
13
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 11

def error
  params['error']
end

#error_descriptionObject



15
16
17
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 15

def error_description
  params['error_description']
end

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 7

def success?
  self.error.nil? && self.callback_success?
end

#test?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 27

def test?
  params['test']
end

#transactionObject



23
24
25
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 23

def transaction
  params['transaction']
end