Sha256: c56bf574b0c267ff208b6bbb19c8b2b1d4fcaec0c8ceeecfbd6cd3b010d3e09d

Contents?: true

Size: 944 Bytes

Versions: 4

Compression:

Stored size: 944 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class EpsilonConvenienceStoreGateway < EpsilonBaseGateway
      def purchase(amount, payment_method, detail = {})
        params = {
          contract_code:  self.contract_code,
          user_id:        detail[:user_id],
          user_name:      detail[:user_name],
          user_mail_add:  detail[:user_email],
          item_code:      detail[:item_code],
          item_name:      detail[:item_name],
          order_number:   detail[:order_number],
          st_code:        '00100-0000-0000',
          mission_code:   EpsilonMissionCode::PURCHASE,
          item_price:     amount,
          process_code:   1,
          xml:            1,
          conveni_code:   payment_method.code,
          user_tel:       payment_method.phone_number,
          user_name_kana: payment_method.name,
        }

        commit('receive_order3.cgi', params)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_merchant-epsilon-0.5.4 lib/active_merchant/billing/gateways/epslion_convenience_store.rb
active_merchant-epsilon-0.5.3 lib/active_merchant/billing/gateways/epslion_convenience_store.rb
active_merchant-epsilon-0.5.2 lib/active_merchant/billing/gateways/epslion_convenience_store.rb
active_merchant-epsilon-0.5.1 lib/active_merchant/billing/gateways/epslion_convenience_store.rb