Class: Kount::SecurityMash

Inherits:
Object
  • Object
show all
Defined in:
lib/kount/security_mash.rb

Class Method Summary collapse

Class Method Details

.hash_credit_card(plain_text, ksalt) ⇒ Object

DEPRECATED: Use Kount::Khash.hash_payment_token instead.



10
11
12
13
# File 'lib/kount/security_mash.rb', line 10

def self.hash_credit_card(plain_text, ksalt)
  warn "[DEPRECATION] use Kount::Khash.hash_payment_token instead"
  Kount::Khash.hash_payment_token(plain_text, ksalt)
end

.hash_gift_card(plain_text, ksalt, merchant_id) ⇒ Object

DEPRECATED: Use Kount::Khash.hash_gift_card instead.



16
17
18
19
# File 'lib/kount/security_mash.rb', line 16

def self.hash_gift_card(plain_text, ksalt, merchant_id)
  warn "[DEPRECATION] use Kount::Khash.has_gift_card instead"
  Kount::Khash.hash_gift_card(plain_text, ksalt, merchant_id)
end

.hash_token(_plain_text, _ptyp, _ksalt, _merchant_id = '') ⇒ Object

DEPRECATED: This function should not be used. It duplicates the concerns of Kount::Inquiry.fixup_payment_params.



5
6
7
# File 'lib/kount/security_mash.rb', line 5

def self.hash_token(_plain_text, _ptyp, _ksalt, _merchant_id = '')
    raise "do not use this function, prefer to use Kount::Inquiry.fixup_payment_params"
end

.mash(data, len, m) ⇒ Object

DEPRECATED: Use Kount::Khash.hash_gift_card instead.



22
23
24
25
# File 'lib/kount/security_mash.rb', line 22

def self.mash(data, len, m)
  warn "[DEPRECATION] use Kount::Khash.getkhash instead"
  Kount::Khash.getkhash(data, len, m)
end