Class: ActiveMerchant::Billing::Integrations::Dwolla::Return
- Inherits:
-
Return
- Object
- Return
- ActiveMerchant::Billing::Integrations::Dwolla::Return
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
Instance Method Details
#callback_success? ⇒ Boolean
31
32
33
|
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 31
def callback_success?
params['postback'] != "failure"
end
|
#checkout_id ⇒ Object
19
20
21
|
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 19
def checkout_id
params['checkoutid']
end
|
#error ⇒ Object
11
12
13
|
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 11
def error
params['error']
end
|
#error_description ⇒ Object
15
16
17
|
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 15
def error_description
params['error_description']
end
|
#success? ⇒ 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
27
28
29
|
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 27
def test?
params['test']
end
|
#transaction ⇒ Object
23
24
25
|
# File 'lib/active_merchant/billing/integrations/dwolla/return.rb', line 23
def transaction
params['transaction']
end
|