Class: GmoServices::Payments::Card

Inherits:
Base
  • Object
show all
Defined in:
lib/gmo_services/payments/card.rb

Instance Attribute Summary

Attributes inherited from Base

#base_api_url, #settings, #shop_id, #shop_pass, #site_id, #site_pass

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GmoServices::Payments::Base

Instance Method Details

#cancel_transaction(params) ⇒ Object



30
31
32
33
34
# File 'lib/gmo_services/payments/card.rb', line 30

def cancel_transaction(params)
  api_url = settings.alter_transaction_api_url
  params = initialize_params_of_cancel_transaction(params)
  post_request(api_url, params)
end

#entry_transaction(params) ⇒ Object



6
7
8
9
10
# File 'lib/gmo_services/payments/card.rb', line 6

def entry_transaction(params)
  api_url = settings.entry_transaction_api_url
  params = initialize_params_of_entry_transaction(params)
  post_request(api_url, params)
end

#execute_transaction_by_member(params) ⇒ Object



18
19
20
21
22
# File 'lib/gmo_services/payments/card.rb', line 18

def execute_transaction_by_member(params)
  api_url = settings.execute_transaction_api_url
  params = initialize_params_of_execute_transaction_by_member(params)
  post_request(api_url, params)
end

#execute_transaction_by_token(params) ⇒ Object



12
13
14
15
16
# File 'lib/gmo_services/payments/card.rb', line 12

def execute_transaction_by_token(params)
  api_url = settings.execute_transaction_api_url
  params = initialize_params_of_execute_transaction_by_token(params)
  post_request(api_url, params)
end

#search_transaction(params) ⇒ Object



24
25
26
27
28
# File 'lib/gmo_services/payments/card.rb', line 24

def search_transaction(params)
  api_url = settings.search_transaction_api_url
  params = initialize_params_of_search_transaction(params)
  post_request(api_url, params)
end

#update_transaction_to_actual_sale(params) ⇒ Object



36
37
38
39
40
# File 'lib/gmo_services/payments/card.rb', line 36

def update_transaction_to_actual_sale(params)
  api_url = settings.alter_transaction_api_url
  params = initialize_params_of_update_transaction_to_actual_sale(params)
  post_request(api_url, params)
end