Class: ActiveMerchant::Billing::Integrations::Dwolla::Notification
- Inherits:
-
Notification
- Object
- Notification
- ActiveMerchant::Billing::Integrations::Dwolla::Notification
show all
- Defined in:
- lib/active_merchant/billing/integrations/dwolla/notification.rb
Instance Attribute Summary
Attributes inherited from Notification
#params, #raw
Instance Method Summary
collapse
#amount, #empty!, #gross_cents, #initialize, #valid_sender?
Instance Method Details
#acknowledge ⇒ Object
37
38
39
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 37
def acknowledge
true
end
|
#complete? ⇒ Boolean
8
9
10
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 8
def complete?
status == "Completed"
end
|
#currency ⇒ Object
20
21
22
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 20
def currency
"USD"
end
|
#error ⇒ Object
28
29
30
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 28
def error
params['Message']
end
|
#gross ⇒ Object
24
25
26
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 24
def gross
params['Amount']
end
|
#status ⇒ Object
12
13
14
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 12
def status
params["Status"]
end
|
#test? ⇒ Boolean
Was this a test transaction?
33
34
35
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 33
def test?
params['TestMode']
end
|
#transaction_id ⇒ Object
16
17
18
|
# File 'lib/active_merchant/billing/integrations/dwolla/notification.rb', line 16
def transaction_id
params['OrderId']
end
|