Class/Module 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
def account
  params['storeid']
end
acknowledge() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 52
def acknowledge      
  true
end
complete?() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 12
def complete?
  status == 'Completed'
end
currency() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 28
def currency
  params['currency']
end
gross() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 32
def gross
  sprintf("%.2f", gross_cents.to_f / 100)
end
gross_cents() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 36
def gross_cents
  params['approveamount'].to_i
end
item_id() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 20
def item_id
  params['ordernumber']
end
received_at() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 24
def received_at
  Time.parse(params['orderdate']) rescue nil
end
status() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 44
def status
  params['retcode'] == SUCCESS ? 'Completed' : 'Failed'
end
test?() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 48
def test?
  ActiveMerchant::Billing::Base.integration_mode == :test
end
transaction_id() click to toggle source
# File lib/active_merchant/billing/integrations/hi_trust/notification.rb, line 16
def transaction_id
  params['authRRN']
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.