Class: ActiveMerchant::Billing::Integrations::Pay19::Notification

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

Instance Method Summary collapse

Instance Method Details

#accountObject



51
52
53
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 51

def 
  params['merchant_id']
end

#acknowledgeObject



55
56
57
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 55

def acknowledge
  verify_payment == params['verifystring']
end

#acknowledge_responseObject



59
60
61
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 59

def acknowledge_response
  "Y"
end

#complete?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 8

def complete?
  "Y" == params["result"]
end

#currencyObject



35
36
37
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 35

def currency
  params['currency']
end

#feeObject



32
33
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 32

def fee
end

#grossObject



28
29
30
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 28

def gross
  params['amount']
end

#invoiceObject



43
44
45
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 43

def invoice

end

#item_idObject



39
40
41
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 39

def item_id
  params['order_id']
end

#received_atObject



12
13
14
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 12

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

#statusObject



16
17
18
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 16

def status

end

#test?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 47

def test?

end

#transaction_idObject



20
21
22
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 20

def transaction_id
  params['pay_sq']
end

#typeObject



24
25
26
# File 'lib/active_merchant/billing/integrations/pay19/notification.rb', line 24

def type
  params['pm_id']
end