Sha256: 344eb548e223edb681f8e8f1e69413a0d228e86609b48acd65fc6a1a6dea83f1

Contents?: true

Size: 1.42 KB

Versions: 46

Compression:

Stored size: 1.42 KB

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      # Documentation:
      # http://wiki.webmoney.ru/projects/webmoney/wiki/Web_Merchant_Interface
      module Webmoney
        autoload :Helper, File.dirname(__FILE__) + '/webmoney/helper.rb'
        autoload :Notification, File.dirname(__FILE__) + '/webmoney/notification.rb'
        autoload :Return, File.dirname(__FILE__) + '/webmoney/return.rb'
        autoload :Common, File.dirname(__FILE__) + '/webmoney/common.rb'

        mattr_accessor :test_url
        self.test_url = "https://merchant.webmoney.ru/lmi/payment.asp"

        mattr_accessor :production_url
        self.production_url =  "https://merchant.webmoney.ru/lmi/payment.asp"

        mattr_accessor :signature_parameter_name
        self.signature_parameter_name = 'LMI_HASH'

        def self.service_url
          mode = ActiveMerchant::Billing::Base.integration_mode
          case mode
          when :production
            self.production_url
          when :test
            self.test_url
          else
            raise StandardError, "Integration mode set to an invalid value: #{mode}"
          end
        end

        def self.helper(order, account, options = {})
          Helper.new(order, account, options)
        end

        def self.notification(query_string, options = {})
          Notification.new(query_string, options)
        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.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/integrations/webmoney.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/integrations/webmoney.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/integrations/webmoney.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/integrations/webmoney.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/integrations/webmoney.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.43.3 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.7 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.6 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.5 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.4 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.3 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.2 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.1 lib/active_merchant/billing/integrations/webmoney.rb
activemerchant-1.42.0 lib/active_merchant/billing/integrations/webmoney.rb