Sha256: 4c15f0263b589a4427844f24513ba6087f425af27f6bdb6c2bcd8366500031ef
Contents?: true
Size: 1.74 KB
Versions: 1
Compression:
Stored size: 1.74 KB
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: class EpsilonLinkPaymentGateway < EpsilonBaseGateway RESPONSE_KEYS = DEFAULT_RESPONSE_KEYS + [ :redirect, ] def purchase(amount, 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: detail[:st_code], mission_code: EpsilonMissionCode::PURCHASE, item_price: amount, process_code: EpsilonProcessCode::FIRST, xml: 1, # 応答形式。1: xml形式を固定 delivery_code: 99, # 配送区分。99で固定 consignee_postal: detail[:consignee_postal], consignee_name: detail[:consignee_name], consignee_address: detail[:consignee_address], consignee_tel: detail[:consignee_tel], orderer_postal: detail[:orderer_postal], orderer_name: detail[:orderer_name], orderer_address: detail[:orderer_address], orderer_tel: detail[:orderer_tel], } params[:memo1] = detail[:memo1] if detail.has_key?(:memo1) params[:memo2] = detail[:memo2] if detail.has_key?(:memo2) params[:user_tel] = detail[:user_tel] if detail.has_key?(:user_tel) commit('receive_order3.cgi', params, RESPONSE_KEYS) end def void(order_number) params = { contract_code: self.contract_code, order_number: order_number } commit('cancel_payment.cgi', params) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_merchant-epsilon-0.11.0 | lib/active_merchant/billing/gateways/epsilon_link_payment.rb |