Sha256: eb4994bd450519cc755de44cc048bdd18fb7011aaafef340ae3cfae36b0f5feb

Contents?: true

Size: 1.04 KB

Versions: 46

Compression:

Stored size: 1.04 KB

Contents

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

          def initialize(order, account, options = {})
            super
            @secret = options[:credential2]
          end

          def form_fields
            @fields.merge(ActiveMerchant::Billing::Integrations::EasyPay.signature_parameter_name => generate_signature(:request))
          end

          def params
            @fields
          end

          mapping :account, 'EP_MerNo'
          mapping :amount, 'EP_Sum'
          mapping :order, 'EP_OrderNo'
          mapping :comment, 'EP_Comment'
          mapping :order_info, 'EP_OrderInfo'
          mapping :expires, 'EP_Expires'
          mapping :success_url, 'EP_Success_URL'
          mapping :cancel_url, 'EP_Cancel_URL'
          mapping :debug, 'EP_Debug'
          mapping :url_type, 'EP_URL_Type'
          mapping :encoding, 'EP_Encoding'
        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/easy_pay/helper.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/integrations/easy_pay/helper.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/integrations/easy_pay/helper.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/integrations/easy_pay/helper.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/integrations/easy_pay/helper.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/integrations/easy_pay/helper.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.43.3 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.7 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.6 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.5 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.4 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.3 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.2 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.1 lib/active_merchant/billing/integrations/easy_pay/helper.rb
activemerchant-1.42.0 lib/active_merchant/billing/integrations/easy_pay/helper.rb