Class Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::HiTrust::Notification

Constants

SUCCESS

Public Instance Methods

account() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 40
40:           def account
41:             params['storeid']
42:           end
acknowledge() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 52
52:           def acknowledge      
53:             true
54:           end
complete?() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 12
12:           def complete?
13:             status == 'Completed'
14:           end
currency() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 28
28:           def currency
29:             params['currency']
30:           end
gross() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 32
32:           def gross
33:             sprintf("%.2f", gross_cents.to_f / 100)
34:           end
gross_cents() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 36
36:           def gross_cents
37:             params['approveamount'].to_i
38:           end
item_id() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 20
20:           def item_id
21:             params['ordernumber']
22:           end
received_at() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 24
24:           def received_at
25:             Time.parse(params['orderdate']) rescue nil
26:           end
status() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 44
44:           def status
45:             params['retcode'] == SUCCESS ? 'Completed' : 'Failed'
46:           end
test?() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 48
48:           def test?
49:             ActiveMerchant::Billing::Base.integration_mode == :test
50:           end
transaction_id() click to toggle source
    # File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 16
16:           def transaction_id
17:             params['authRRN']
18:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.