Module: GMO::Payment::ShopAndSiteAPIMethods
- Included in:
- ShopAndSiteAPI
- Defined in:
- lib/gmo/shop_and_site_api.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#shop_id ⇒ Object
readonly
Returns the value of attribute shop_id.
-
#shop_pass ⇒ Object
readonly
Returns the value of attribute shop_pass.
-
#site_id ⇒ Object
readonly
Returns the value of attribute site_id.
-
#site_pass ⇒ Object
readonly
Returns the value of attribute site_pass.
Instance Method Summary collapse
- #initialize(options = {}) ⇒ Object
-
#trade_card(options = {}) ⇒ Object
2.17.2.1.決済後カード登録 指定されたオーダーID の取引に使用したカードを登録します。 CardSeq CardNo Forward.
Instance Attribute Details
#host ⇒ Object (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_id ⇒ Object (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_pass ⇒ Object (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_id ⇒ Object (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_pass ⇒ Object (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( = {}) @shop_id = [:shop_id] @shop_pass = [:shop_pass] @site_id = [:site_id] @site_pass = [:site_pass] @host = [: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 #{.inspect})" end end |
#trade_card(options = {}) ⇒ Object
2.17.2.1.決済後カード登録 指定されたオーダーID の取引に使用したカードを登録します。 CardSeq CardNo Forward
24 25 26 27 28 29 |
# File 'lib/gmo/shop_and_site_api.rb', line 24 def trade_card( = {}) name = "TradedCard.idPass" required = [:order_id, :member_id] (required, ) post_request name, end |