Sha256: b501a31a404901f2fefe566c5508fca9129d1134fc3b5ff721aa0f178b92181b
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
# :nodoc: module Veritrans # :nodoc: module HashGenerator # Generate hash using SHA-512. # # Parameters: # * <tt>[String]merchant_id</tt> - Merchant ID # * <tt>[String]merchant_hash_key</tt> - Merchant Hash key # * <tt>[String]settlement_method</tt> - '01' Credit Card # * <tt>[String]order_id</tt> # * <tt>[String]amount</tt> def self.generate(merchant_id, merchant_hash_key, settlement_method, order_id) Digest::SHA512.hexdigest("#{merchant_hash_key},#{merchant_id},#{settlement_method},#{order_id}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritrans-1.2.5 | lib/veritrans/hash_generator.rb |
veritrans-1.2.4 | lib/veritrans/hash_generator.rb |