Sha256: 4c490667e8957ecbf4ce4e720a4c6fac9213f216a3616239f8c9c926b4a8ac43
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
# frozen_string_literal: true module BMLConnect module Crypt module Signature attr_accessor :signature def sign(api_key) plain_signature = 'amount=' + amount.to_s + '¤cy=' + currency + '&apiKey=' + api_key @signature = Digest::SHA1.base64digest plain_signature end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bml_connect-0.2.0 | lib/bml_connect/crypt/signature.rb |
bml_connect-0.1.0 | lib/bml_connect/crypt/signature.rb |