Sha256: 4a8d5d76a3fe8bdde609d68d863f834e707522bfe4374eae434677801984e685

Contents?: true

Size: 616 Bytes

Versions: 46

Compression:

Stored size: 616 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module Webmoney
        module Common
          def generate_signature_string
            "#{params['LMI_PAYEE_PURSE']}#{params['LMI_PAYMENT_AMOUNT']}#{params['LMI_PAYMENT_NO']}#{params['LMI_MODE']}#{params['LMI_SYS_INVS_NO']}#{params['LMI_SYS_TRANS_NO']}#{params['LMI_SYS_TRANS_DATE']}#{secret}#{params['LMI_PAYER_PURSE']}#{params['LMI_PAYER_WM']}"
          end

          def generate_signature
            Digest::MD5.hexdigest(generate_signature_string).upcase
          end
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
tanga_activemerchant-1.38.0.5 lib/active_merchant/billing/integrations/webmoney/common.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/integrations/webmoney/common.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/integrations/webmoney/common.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/integrations/webmoney/common.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/integrations/webmoney/common.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/integrations/webmoney/common.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.43.3 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.7 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.6 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.5 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.4 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.3 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.2 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.1 lib/active_merchant/billing/integrations/webmoney/common.rb
activemerchant-1.42.0 lib/active_merchant/billing/integrations/webmoney/common.rb