Class: ActiveMerchant::Billing::Integrations::Yeepay::Notification
- Inherits:
-
Notification
- Object
- Notification
- ActiveMerchant::Billing::Integrations::Yeepay::Notification
- Defined in:
- lib/active_merchant/billing/integrations/yeepay/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
50 51 52 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 50 def account params['p1_MerId'] end |
#acknowledge ⇒ Object
54 55 56 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 54 def acknowledge hmac_md5_hexdigest == params['hmac'] end |
#acknowledge_response ⇒ Object
58 59 60 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 58 def acknowledge_response "success" end |
#complete? ⇒ Boolean
6 7 8 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 6 def complete? "1" == params["r1_Code"] end |
#currency ⇒ Object
34 35 36 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 34 def currency params['r4_Cur'] end |
#fee ⇒ Object
30 31 32 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 30 def fee end |
#gross ⇒ Object
26 27 28 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 26 def gross params['r3_Amt'] end |
#invoice ⇒ Object
42 43 44 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 42 def invoice end |
#item_id ⇒ Object
38 39 40 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 38 def item_id params['r6_Order'] end |
#received_at ⇒ Object
10 11 12 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 10 def received_at Time.parse params['ru_Trxtime'] end |
#status ⇒ Object
14 15 16 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 14 def status end |
#test? ⇒ Boolean
46 47 48 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 46 def test? end |
#transaction_id ⇒ Object
18 19 20 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 18 def transaction_id params['r2_TrxId'] end |
#type ⇒ Object
22 23 24 |
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 22 def type params['r0_Cmd'] end |