Sha256: 2e468b7278f29795c86a1efef001acf5d05b34a884b72bb2223e1b48d7c9809a

Contents?: true

Size: 407 Bytes

Versions: 9

Compression:

Stored size: 407 Bytes

Contents

require 'digest'

module GenesisRuby
  module Utils
    module Threeds
      # Threeds V2 Utils
      class V2

        class << self

          # Generate 3DSV2 signature
          def generate_signature(unique_id:, amount:, timestamp:, merchant_password:)
            Digest::SHA512.hexdigest "#{unique_id}#{amount}#{timestamp}#{merchant_password}"
          end

        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
genesis_ruby-0.2.0 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.9 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.8 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.7 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.6 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.5 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.4 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.3 lib/genesis_ruby/utils/threeds/v2.rb
genesis_ruby-0.1.2 lib/genesis_ruby/utils/threeds/v2.rb