Sha256: 01f59cfaece22c4a5778f6b1a75757d9265fc35823729f790b180b24fb0e0371
Contents?: true
Size: 573 Bytes
Versions: 22
Compression:
Stored size: 573 Bytes
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Robokassa module Common def generate_signature_string custom_param_keys = params.keys.select {|key| key =~ /^shp/}.sort custom_params = custom_param_keys.map {|key| "#{key}=#{params[key]}"} [main_params, secret, custom_params].flatten.compact.join(':') end def generate_signature Digest::MD5.hexdigest(generate_signature_string) end end end end end end
Version data entries
22 entries across 22 versions & 4 rubygems