Class: ActiveMerchant::Billing::Integrations::Yeepay::Notification

Inherits:
Notification
  • Object
show all
Defined in:
lib/active_merchant/billing/integrations/yeepay/notification.rb

Instance Method Summary collapse

Instance Method Details

#accountObject



50
51
52
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 50

def 
  params['p1_MerId']
end

#acknowledgeObject



54
55
56
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 54

def acknowledge
  hmac_md5_hexdigest == params['hmac']
end

#acknowledge_responseObject



58
59
60
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 58

def acknowledge_response
  "success"
end

#complete?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 6

def complete?
  "1" == params["r1_Code"]
end

#currencyObject



34
35
36
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 34

def currency
  params['r4_Cur']
end

#feeObject



30
31
32
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 30

def fee

end

#grossObject



26
27
28
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 26

def gross
  params['r3_Amt']
end

#invoiceObject



42
43
44
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 42

def invoice
  
end

#item_idObject



38
39
40
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 38

def item_id
  params['r6_Order']
end

#received_atObject



10
11
12
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 10

def received_at
  Time.parse params['ru_Trxtime']
end

#statusObject



14
15
16
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 14

def status
  
end

#test?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 46

def test?

end

#transaction_idObject



18
19
20
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 18

def transaction_id
  params['r2_TrxId']
end

#typeObject



22
23
24
# File 'lib/active_merchant/billing/integrations/yeepay/notification.rb', line 22

def type
  params['r0_Cmd']
end