Class: ActiveMerchant::Billing::Integrations::Pay19::Notification
- Inherits:
-
Notification
- Object
- Notification
- ActiveMerchant::Billing::Integrations::Pay19::Notification
- Defined in:
- lib/active_merchant/billing/integrations/pay19/notification.rb
Instance Method Summary collapse
- #account ⇒ Object
- #acknowledge ⇒ Object
- #acknowledge_response ⇒ Object
- #complete? ⇒ Boolean
- #currency ⇒ Object
- #fee ⇒ Object
- #gross ⇒ Object
- #invoice ⇒ Object
- #item_id ⇒ Object
- #received_at ⇒ Object
- #status ⇒ Object
- #test? ⇒ Boolean
- #transaction_id ⇒ Object
- #type ⇒ Object
Instance Method Details
#account ⇒ Object
51 52 53 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 51 def account params['merchant_id'] end |
#acknowledge ⇒ Object
55 56 57 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 55 def acknowledge verify_payment == params['verifystring'] end |
#acknowledge_response ⇒ Object
59 60 61 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 59 def acknowledge_response "Y" end |
#complete? ⇒ Boolean
8 9 10 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 8 def complete? "Y" == params["result"] end |
#currency ⇒ Object
35 36 37 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 35 def currency params['currency'] end |
#fee ⇒ Object
32 33 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 32 def fee end |
#gross ⇒ Object
28 29 30 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 28 def gross params['amount'] end |
#invoice ⇒ Object
43 44 45 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 43 def invoice end |
#item_id ⇒ Object
39 40 41 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 39 def item_id params['order_id'] end |
#received_at ⇒ Object
12 13 14 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 12 def received_at Time.parse params['pay_date'] end |
#status ⇒ Object
16 17 18 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 16 def status end |
#test? ⇒ Boolean
47 48 49 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 47 def test? end |
#transaction_id ⇒ Object
20 21 22 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 20 def transaction_id params['pay_sq'] end |
#type ⇒ Object
24 25 26 |
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 24 def type params['pm_id'] end |