Sha256: a25ccf13dcfc3db04ff6f3906712d16822782ed41aacc4c7dab58400533b5262

Contents?: true

Size: 1.11 KB

Versions: 29

Compression:

Stored size: 1.11 KB

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module Webmoney
        class Helper < ActiveMerchant::Billing::Integrations::Helper
          include Common

          def initialize(order, account, options = {})
            @webmoney_options = options.dup
            options.delete(:description)
            options.delete(:fail_url)
            options.delete(:success_url)
            options.delete(:result_url)
            super
            @webmoney_options.each do |key, value|
              add_field mappings[key], value
            end
          end

          def form_fields
            @fields
          end

          def params
            @fields
          end

          mapping :account, 'LMI_PAYEE_PURSE'
          mapping :amount, 'LMI_PAYMENT_AMOUNT'
          mapping :order, 'LMI_PAYMENT_NO'
          mapping :description, 'LMI_PAYMENT_DESC'
          mapping :fail_url, 'LMI_FAIL_URL'
          mapping :success_url, 'LMI_SUCCESS_URL'
          mapping :result_url, 'LMI_RESULT_URL'
          mapping :debug, 'LMI_SIM_MODE'
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

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