Module: GMO::Payment::ShopAndSiteAPIMethods

Included in:
ShopAndSiteAPI
Defined in:
lib/gmo/shop_and_site_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



16
17
18
# File 'lib/gmo/shop_and_site_api.rb', line 16

def host
  @host
end

#shop_idObject (readonly)

Returns the value of attribute shop_id.



16
17
18
# File 'lib/gmo/shop_and_site_api.rb', line 16

def shop_id
  @shop_id
end

#shop_passObject (readonly)

Returns the value of attribute shop_pass.



16
17
18
# File 'lib/gmo/shop_and_site_api.rb', line 16

def shop_pass
  @shop_pass
end

#site_idObject (readonly)

Returns the value of attribute site_id.



16
17
18
# File 'lib/gmo/shop_and_site_api.rb', line 16

def site_id
  @site_id
end

#site_passObject (readonly)

Returns the value of attribute site_pass.



16
17
18
# File 'lib/gmo/shop_and_site_api.rb', line 16

def site_pass
  @site_pass
end

Instance Method Details

#initialize(options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/gmo/shop_and_site_api.rb', line 6

def initialize(options = {})
  @shop_id   = options[:shop_id]
  @shop_pass = options[:shop_pass]
  @site_id   = options[:site_id]
  @site_pass = options[:site_pass]
  @host      = options[:host]
  unless @site_id && @site_pass && @shop_id && @shop_pass && @host
    raise ArgumentError, "Initialize must receive a hash with :site_id, :site_pass, :shop_id, :shop_pass and either :host! (received #{options.inspect})"
  end
end

#trade_card(options = {}) ⇒ Object

2.17.2.1.決済後カード登録 指定されたオーダーID の取引に使用したカードを登録します。 CardSeq CardNo Forward

Returns:

  • ###



24
25
26
27
28
29
# File 'lib/gmo/shop_and_site_api.rb', line 24

def trade_card(options = {})
  name = "TradedCard.idPass"
  required = [:order_id, :member_id]
  assert_required_options(required, options)
  post_request name, options
end