Module: GmoPayment

Defined in:
lib/gmo_payment.rb,
lib/gmo_payment/client.rb,
lib/gmo_payment/errors.rb,
lib/gmo_payment/version.rb,
lib/gmo_payment/glossary.rb,
lib/gmo_payment/configure.rb,
lib/gmo_payment/client/options.rb,
lib/gmo_payment/client/request.rb,
lib/gmo_payment/client/response.rb,
lib/generators/gmo_payment/install_generator.rb

Defined Under Namespace

Modules: Configure, Generators Classes: Client, Errors

Constant Summary collapse

VERSION =
'0.0.2'
GLOSSARY =
{
  :access_id         => 'AccessID',
  :access_pass       => 'AccessPass',
  :acs               => 'ACS',
  :acs_url           => 'ACSUrl',
  :amount            => 'Amount',
  :approve           => 'Approve',
  :card_name         => 'CardName',
  :card_no           => 'CardNo',
  :card_pass         => 'CardPass',
  :card_seq          => 'CardSeq',
  :check_string      => 'CheckString',
  :client_field_1    => 'ClientField1',
  :client_field_2    => 'ClientField2',
  :client_field_3    => 'ClientField3',
  :client_field_flag => 'ClientFieldFlag',
  :currency          => 'Currency',
  :default_flag      => 'DefaultFlag',
  :delete_flag       => 'DeleteFlag',
  :device_category   => 'DeviceCategory',
  :err_code          => 'ErrCode',
  :err_info          => 'ErrInfo',
  :expire            => 'Expire',
  :forward           => 'Forward',
  :holder_name       => 'HolderName',
  :http_accept       => 'HttpAccept',
  :http_user_agent   => 'HttpUserAgent',
  :item_code         => 'ItemCode',
  :item_memo         => 'ItemMemo',
  :item_name         => 'ItemName',
  :job_cd            => 'JobCd',
  :md                => 'MD',
  :medium            => 'medium',
  :member_id         => 'MemberID',
  :member_name       => 'MemberName',
  :method            => 'Method',
  :order_id          => 'OrderID',
  :pa_req            => 'PaReq',
  :pa_res            => 'PaRes',
  :pay_times         => 'PayTimes',
  :pay_type          => 'PayType',
  :pin               => 'PIN',
  :process_date      => 'ProcessDate',
  :recv_res          => 'RecvRes',
  :ret_url           => 'RetURL',
  :security_code     => 'SecurityCode',
  :seq_mode          => 'SeqMode',
  :shop_id           => 'ShopID',
  :shop_pass         => 'ShopPass',
  :site_id           => 'SiteID',
  :site_pass         => 'SitePass',
  :start_url         => 'StartURL',
  :status            => 'Status',
  :tax               => 'Tax',
  :td_flag           => 'TdFlag',
  :td_tenant_name    => 'TdTenantName',
  :term_url          => 'TermUrl',
  :timeout           => 'Timeout',
  :token             => 'Token',
  :tran_id           => 'TranID',
  :tran_date         => 'TranDate',
}

Class Method Summary collapse

Class Method Details

.reset!Object

Reset Configure variables.



27
28
29
# File 'lib/gmo_payment.rb', line 27

def reset!
   GmoPayment::Configure.reset!
end

.setup(&block) ⇒ Object

Setup Configure variables.

Examples:

GmoPayment.setup do |c|
  c.api_endpoint = 'example.com'
  c.proxy        = 'https://user:[email protected]:443/'
  c.verify_mode  = ::OpenSSL::SSL::VERIFY_PEER
  c.error_list   = 'path/to/file.yml'
  c.site_id      = 'GMO_SITE_ID'
  c.site_pass    = 'GMO_SITE_PASS'
  c.shop_id      = 'GMO_SHOP_ID'
  c.shop_pass    = 'GMO_SHOP_PASS'
end


22
23
24
# File 'lib/gmo_payment.rb', line 22

def setup(&block)
  GmoPayment::Configure.setup(&block)
end