gmo_payment 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.editorconfig +12 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +20 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +17 -0
- data/MIT-LICENSE +22 -0
- data/README.md +101 -0
- data/Rakefile +7 -0
- data/gmo_payment.gemspec +22 -0
- data/lib/generators/gmo_payment/install_generator.rb +15 -0
- data/lib/generators/gmo_payment/templates/ja.yml +246 -0
- data/lib/gmo_payment/client/options.rb +39 -0
- data/lib/gmo_payment/client/request.rb +294 -0
- data/lib/gmo_payment/client/response.rb +205 -0
- data/lib/gmo_payment/client.rb +538 -0
- data/lib/gmo_payment/configure.rb +30 -0
- data/lib/gmo_payment/errors.rb +95 -0
- data/lib/gmo_payment/glossary.rb +66 -0
- data/lib/gmo_payment/version.rb +3 -0
- data/lib/gmo_payment.rb +31 -0
- data/spec/cassettes/GmoPayment_Client/_auth_to_sales/return_6_items.yml +120 -0
- data/spec/cassettes/GmoPayment_Client/_call/with_ResponseHTTPError/raise_ResponseHTTPError.yml +46 -0
- data/spec/cassettes/GmoPayment_Client/_call/with_ResponseHasErrCodeError/raise_ResponseHTTPError.yml +48 -0
- data/spec/cassettes/GmoPayment_Client/_change_tran/return_6_items.yml +120 -0
- data/spec/cassettes/GmoPayment_Client/_delete_card/return_1_items.yml +114 -0
- data/spec/cassettes/GmoPayment_Client/_delete_member/return_1_items.yml +77 -0
- data/spec/cassettes/GmoPayment_Client/_delete_tran/return_6_items.yml +120 -0
- data/spec/cassettes/GmoPayment_Client/_entry_tran/return_2_items.yml +40 -0
- data/spec/cassettes/GmoPayment_Client/_entry_tran_btc/return_2_items.yml +42 -0
- data/spec/cassettes/GmoPayment_Client/_exec_tran/return_12_items.yml +83 -0
- data/spec/cassettes/GmoPayment_Client/_exec_tran_3d/return_4_items.yml +77 -0
- data/spec/cassettes/GmoPayment_Client/_exec_tran_btc/return_3_items.yml +81 -0
- data/spec/cassettes/GmoPayment_Client/_exec_tran_member/return_12_items.yml +157 -0
- data/spec/cassettes/GmoPayment_Client/_exec_tran_member_3d/return_4_items.yml +151 -0
- data/spec/cassettes/GmoPayment_Client/_get_rate_btc/return_1_item.yml +42 -0
- data/spec/cassettes/GmoPayment_Client/_re_exec_tran/return_6_items.yml +157 -0
- data/spec/cassettes/GmoPayment_Client/_save_card/return_3_items.yml +77 -0
- data/spec/cassettes/GmoPayment_Client/_save_member/return_1_items.yml +40 -0
- data/spec/cassettes/GmoPayment_Client/_save_traded_card/return_3_items.yml +157 -0
- data/spec/cassettes/GmoPayment_Client/_search_card/return_7_items.yml +114 -0
- data/spec/cassettes/GmoPayment_Client/_search_member/return_3_items.yml +77 -0
- data/spec/cassettes/GmoPayment_Client/_search_trade/return_21_items.yml +77 -0
- data/spec/cassettes/GmoPayment_Client/_search_trade_btc/return_11_items.yml +79 -0
- data/spec/cassettes/GmoPayment_Client/_secure_tran/return_11_items.yml +120 -0
- data/spec/cassettes/GmoPayment_Client/_update_card/return_3_items.yml +114 -0
- data/spec/cassettes/GmoPayment_Client/_update_member/return_1_items.yml +77 -0
- data/spec/cassettes/GmoPayment_Client_Response/GmoPayment_GLOSSARY_keys_to_method/return_body_values_if_body_match_Hash_keys_and_GLOSSARY_keys.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_body/with_prebody_match_Hash_keys_and_GLOSSARY_keys/return_Hash_keys_Symbol_and_values_as_it_is.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_body/without_prebody_match_Hash_keys_and_GLOSSARY_keys/return_Hash_keys_String_and_values_as_it_is.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_encoded_raw_body/return_String_of_encoded_Shift_JIS_to_UTF-8.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_error_/with_ErrCode/return_true.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_error_/without_ErrCode/return_false.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_http_code/return_Integer_of_HTTP_status_code.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_http_error_/with_2xx/return_false.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_http_error_/without_2xx/return_true.yml +44 -0
- data/spec/cassettes/GmoPayment_Client_Response/_http_header/return_Hash_of_HTTP_header.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_http_message/return_String_of_HTTP_message.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_prebody/with_ErrCode/behaves_like_getting_Hash_values_Array/return_Hash_keys_String_and_values_Array.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_prebody/with_called_return_array_true/behaves_like_getting_Hash_values_Array/return_Hash_keys_String_and_values_Array.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_prebody/with_no_ErroCode_and_called_return_array_false/return_Hash_keys_and_values_String.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_raw_body/return_String_of_HTTP_response_body_as_it_is.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_split_encoded_raw_body/behaves_like_URI_decode_www_form/with_response_body_have_invalid_parameters_to_split/return_empty_Array.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_split_encoded_raw_body/behaves_like_URI_decode_www_form/with_response_body_have_only_GLOSSARY_keys/return_predefined_Array_format.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_split_encoded_raw_body_/behaves_like_URI_decode_www_form/with_response_body_have_invalid_parameters_to_split/return_empty_Array.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_split_encoded_raw_body_/behaves_like_URI_decode_www_form/with_response_body_have_only_GLOSSARY_keys/return_predefined_Array_format.yml +46 -0
- data/spec/cassettes/GmoPayment_Client_Response/_split_encoded_raw_body_/with_response_body_have_not_only_GLOSSARY_keys/returns_predefined_Array_format_without_GLOSSARY_keys.yml +46 -0
- data/spec/gmo_payment/client/options_spec.rb +107 -0
- data/spec/gmo_payment/client/request_spec.rb +403 -0
- data/spec/gmo_payment/client/response_spec.rb +280 -0
- data/spec/gmo_payment/client_spec.rb +809 -0
- data/spec/gmo_payment/configure_spec.rb +90 -0
- data/spec/gmo_payment/errors_spec.rb +118 -0
- data/spec/gmo_payment/glossary_spec.rb +15 -0
- data/spec/gmo_payment_spec.rb +22 -0
- data/spec/spec_helper.rb +70 -0
- data/spec/support/request_validation.rb +71 -0
- metadata +179 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
module GmoPayment
|
|
4
|
+
GLOSSARY = {
|
|
5
|
+
:access_id => 'AccessID',
|
|
6
|
+
:access_pass => 'AccessPass',
|
|
7
|
+
:acs => 'ACS',
|
|
8
|
+
:acs_url => 'ACSUrl',
|
|
9
|
+
:amount => 'Amount',
|
|
10
|
+
:approve => 'Approve',
|
|
11
|
+
:card_name => 'CardName',
|
|
12
|
+
:card_no => 'CardNo',
|
|
13
|
+
:card_pass => 'CardPass',
|
|
14
|
+
:card_seq => 'CardSeq',
|
|
15
|
+
:check_string => 'CheckString',
|
|
16
|
+
:client_field_1 => 'ClientField1',
|
|
17
|
+
:client_field_2 => 'ClientField2',
|
|
18
|
+
:client_field_3 => 'ClientField3',
|
|
19
|
+
:client_field_flag => 'ClientFieldFlag',
|
|
20
|
+
:currency => 'Currency',
|
|
21
|
+
:default_flag => 'DefaultFlag',
|
|
22
|
+
:delete_flag => 'DeleteFlag',
|
|
23
|
+
:device_category => 'DeviceCategory',
|
|
24
|
+
:err_code => 'ErrCode',
|
|
25
|
+
:err_info => 'ErrInfo',
|
|
26
|
+
:expire => 'Expire',
|
|
27
|
+
:forward => 'Forward',
|
|
28
|
+
:holder_name => 'HolderName',
|
|
29
|
+
:http_accept => 'HttpAccept',
|
|
30
|
+
:http_user_agent => 'HttpUserAgent',
|
|
31
|
+
:item_code => 'ItemCode',
|
|
32
|
+
:item_memo => 'ItemMemo',
|
|
33
|
+
:item_name => 'ItemName',
|
|
34
|
+
:job_cd => 'JobCd',
|
|
35
|
+
:md => 'MD',
|
|
36
|
+
:medium => 'medium',
|
|
37
|
+
:member_id => 'MemberID',
|
|
38
|
+
:member_name => 'MemberName',
|
|
39
|
+
:method => 'Method',
|
|
40
|
+
:order_id => 'OrderID',
|
|
41
|
+
:pa_req => 'PaReq',
|
|
42
|
+
:pa_res => 'PaRes',
|
|
43
|
+
:pay_times => 'PayTimes',
|
|
44
|
+
:pay_type => 'PayType',
|
|
45
|
+
:pin => 'PIN',
|
|
46
|
+
:process_date => 'ProcessDate',
|
|
47
|
+
:recv_res => 'RecvRes',
|
|
48
|
+
:ret_url => 'RetURL',
|
|
49
|
+
:security_code => 'SecurityCode',
|
|
50
|
+
:seq_mode => 'SeqMode',
|
|
51
|
+
:shop_id => 'ShopID',
|
|
52
|
+
:shop_pass => 'ShopPass',
|
|
53
|
+
:site_id => 'SiteID',
|
|
54
|
+
:site_pass => 'SitePass',
|
|
55
|
+
:start_url => 'StartURL',
|
|
56
|
+
:status => 'Status',
|
|
57
|
+
:tax => 'Tax',
|
|
58
|
+
:td_flag => 'TdFlag',
|
|
59
|
+
:td_tenant_name => 'TdTenantName',
|
|
60
|
+
:term_url => 'TermUrl',
|
|
61
|
+
:timeout => 'Timeout',
|
|
62
|
+
:token => 'Token',
|
|
63
|
+
:tran_id => 'TranID',
|
|
64
|
+
:tran_date => 'TranDate',
|
|
65
|
+
}
|
|
66
|
+
end
|
data/lib/gmo_payment.rb
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
require 'gmo_payment/version'
|
|
3
|
+
require 'gmo_payment/glossary'
|
|
4
|
+
require 'gmo_payment/configure'
|
|
5
|
+
require 'gmo_payment/errors'
|
|
6
|
+
require 'gmo_payment/client'
|
|
7
|
+
|
|
8
|
+
module GmoPayment
|
|
9
|
+
class << self
|
|
10
|
+
# Setup {GmoPayment::Configure} variables.
|
|
11
|
+
# @example
|
|
12
|
+
# GmoPayment.setup do |c|
|
|
13
|
+
# c.api_endpoint = 'example.com'
|
|
14
|
+
# c.proxy = 'https://user:password@proxy.com:443/'
|
|
15
|
+
# c.verify_mode = ::OpenSSL::SSL::VERIFY_PEER
|
|
16
|
+
# c.error_list = 'path/to/file.yml'
|
|
17
|
+
# c.site_id = 'GMO_SITE_ID'
|
|
18
|
+
# c.site_pass = 'GMO_SITE_PASS'
|
|
19
|
+
# c.shop_id = 'GMO_SHOP_ID'
|
|
20
|
+
# c.shop_pass = 'GMO_SHOP_PASS'
|
|
21
|
+
# end
|
|
22
|
+
def setup(&block)
|
|
23
|
+
GmoPayment::Configure.setup(&block)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Reset {GmoPayment::Configure} variables.
|
|
27
|
+
def reset!
|
|
28
|
+
GmoPayment::Configure.reset!
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://<API_ENDPOINT>/payment/EntryTran.idPass
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: OrderID=T-9&JobCd=AUTH&Amount=1&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
12
|
+
User-Agent:
|
|
13
|
+
- RubyGem/GmoPayment/0.0.1
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
16
|
+
Content-Length:
|
|
17
|
+
- '70'
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/x-www-form-urlencoded
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Server:
|
|
26
|
+
- nginx
|
|
27
|
+
Date:
|
|
28
|
+
- Tue, 24 Mar 2015 12:00:24 GMT
|
|
29
|
+
Content-Type:
|
|
30
|
+
- text/plain;charset=Windows-31J
|
|
31
|
+
Transfer-Encoding:
|
|
32
|
+
- chunked
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
body:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: AccessID=4c6e036c8f213ddb47a92468583eb40d&AccessPass=6772013c381b4ff1b327412134b81a4b
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Tue, 24 Mar 2015 12:00:25 GMT
|
|
40
|
+
- request:
|
|
41
|
+
method: post
|
|
42
|
+
uri: https://<API_ENDPOINT>/payment/ExecTran.idPass
|
|
43
|
+
body:
|
|
44
|
+
encoding: US-ASCII
|
|
45
|
+
string: AccessID=4c6e036c8f213ddb47a92468583eb40d&AccessPass=6772013c381b4ff1b327412134b81a4b&OrderID=T-9&CardNo=<CARD_NO_N>&Expire=<CARD_EXPIRE>&Method=1&ClientField1=DEVTEST&ClientField2=%8AJ%94%AD%83e%83X%83g&ClientField3=%23auth_to_sales&ClientFieldFlag=1
|
|
46
|
+
headers:
|
|
47
|
+
Accept:
|
|
48
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
49
|
+
User-Agent:
|
|
50
|
+
- RubyGem/GmoPayment/0.0.1
|
|
51
|
+
Accept-Encoding:
|
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
53
|
+
Content-Length:
|
|
54
|
+
- '247'
|
|
55
|
+
Content-Type:
|
|
56
|
+
- application/x-www-form-urlencoded
|
|
57
|
+
response:
|
|
58
|
+
status:
|
|
59
|
+
code: 200
|
|
60
|
+
message: OK
|
|
61
|
+
headers:
|
|
62
|
+
Server:
|
|
63
|
+
- nginx
|
|
64
|
+
Date:
|
|
65
|
+
- Tue, 24 Mar 2015 12:00:25 GMT
|
|
66
|
+
Content-Type:
|
|
67
|
+
- text/plain;charset=Windows-31J
|
|
68
|
+
Transfer-Encoding:
|
|
69
|
+
- chunked
|
|
70
|
+
Connection:
|
|
71
|
+
- close
|
|
72
|
+
body:
|
|
73
|
+
encoding: ASCII-8BIT
|
|
74
|
+
string: !binary |-
|
|
75
|
+
QUNTPTAmT3JkZXJJRD1ULTkmRm9yd2FyZD0yYTk5NjYyJk1ldGhvZD0xJlBh
|
|
76
|
+
eVRpbWVzPSZBcHByb3ZlPTY2MTEyNzUmVHJhbklEPTE1MDMyNDIxMDAxMTEx
|
|
77
|
+
MTExMTExMTE4NzIzODcmVHJhbkRhdGU9MjAxNTAzMjQyMTAwMjQmQ2hlY2tT
|
|
78
|
+
dHJpbmc9MTY5ZmQ2Y2UwY2E1ODc3MGFlMjZjYmYwMjZlNDIzNzEmQ2xpZW50
|
|
79
|
+
RmllbGQxPURFVlRFU1QmQ2xpZW50RmllbGQyPYpKlK2DZYNYg2cmQ2xpZW50
|
|
80
|
+
RmllbGQzPSNhdXRoX3RvX3NhbGVz
|
|
81
|
+
http_version:
|
|
82
|
+
recorded_at: Tue, 24 Mar 2015 12:00:26 GMT
|
|
83
|
+
- request:
|
|
84
|
+
method: post
|
|
85
|
+
uri: https://<API_ENDPOINT>/payment/AlterTran.idPass
|
|
86
|
+
body:
|
|
87
|
+
encoding: US-ASCII
|
|
88
|
+
string: AccessID=4c6e036c8f213ddb47a92468583eb40d&AccessPass=6772013c381b4ff1b327412134b81a4b&Amount=1&JobCd=SALES&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
|
89
|
+
headers:
|
|
90
|
+
Accept:
|
|
91
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
92
|
+
User-Agent:
|
|
93
|
+
- RubyGem/GmoPayment/0.0.1
|
|
94
|
+
Accept-Encoding:
|
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
96
|
+
Content-Length:
|
|
97
|
+
- '145'
|
|
98
|
+
Content-Type:
|
|
99
|
+
- application/x-www-form-urlencoded
|
|
100
|
+
response:
|
|
101
|
+
status:
|
|
102
|
+
code: 200
|
|
103
|
+
message: OK
|
|
104
|
+
headers:
|
|
105
|
+
Server:
|
|
106
|
+
- nginx
|
|
107
|
+
Date:
|
|
108
|
+
- Tue, 24 Mar 2015 12:00:25 GMT
|
|
109
|
+
Content-Type:
|
|
110
|
+
- text/plain;charset=Windows-31J
|
|
111
|
+
Transfer-Encoding:
|
|
112
|
+
- chunked
|
|
113
|
+
Connection:
|
|
114
|
+
- close
|
|
115
|
+
body:
|
|
116
|
+
encoding: UTF-8
|
|
117
|
+
string: AccessID=4c6e036c8f213ddb47a92468583eb40d&AccessPass=6772013c381b4ff1b327412134b81a4b&Forward=2a99662&Approve=6611275&TranID=1503242100111111111111872387&TranDate=20150324210025
|
|
118
|
+
http_version:
|
|
119
|
+
recorded_at: Tue, 24 Mar 2015 12:00:26 GMT
|
|
120
|
+
recorded_with: VCR 2.9.3
|
data/spec/cassettes/GmoPayment_Client/_call/with_ResponseHTTPError/raise_ResponseHTTPError.yml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://localhost/payment/EntryTran.idPass
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ShopID=x&ShopPass=x&OrderID=x&JobCd=CHECK
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
12
|
+
User-Agent:
|
|
13
|
+
- RubyGem/GmoPayment/0.0.1
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
16
|
+
Content-Length:
|
|
17
|
+
- '41'
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/x-www-form-urlencoded
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 404
|
|
23
|
+
message: 'Not Found '
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- text/html; charset=utf-8
|
|
27
|
+
Cache-Control:
|
|
28
|
+
- no-cache
|
|
29
|
+
X-Request-Id:
|
|
30
|
+
- 0af62d69-f785-4b22-92a4-94ebb62b52f5
|
|
31
|
+
X-Runtime:
|
|
32
|
+
- '0.072287'
|
|
33
|
+
Server:
|
|
34
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2013-11-22) OpenSSL/1.0.1j
|
|
35
|
+
Date:
|
|
36
|
+
- Tue, 24 Mar 2015 11:28:41 GMT
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '9'
|
|
39
|
+
Connection:
|
|
40
|
+
- Keep-Alive
|
|
41
|
+
body:
|
|
42
|
+
encoding: UTF-8
|
|
43
|
+
string: NOT FOUND
|
|
44
|
+
http_version:
|
|
45
|
+
recorded_at: Tue, 24 Mar 2015 11:28:41 GMT
|
|
46
|
+
recorded_with: VCR 2.9.3
|
data/spec/cassettes/GmoPayment_Client/_call/with_ResponseHasErrCodeError/raise_ResponseHTTPError.yml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://localhost/payment/ExecTran.idPass
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: AccessID=x&AccessPass=x&OrderID=x&CardNo=1111111111&Expire=1111
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
12
|
+
User-Agent:
|
|
13
|
+
- RubyGem/GmoPayment/0.0.1
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
16
|
+
Content-Length:
|
|
17
|
+
- '63'
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/x-www-form-urlencoded
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: 'OK '
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- text/html; charset=utf-8
|
|
27
|
+
Etag:
|
|
28
|
+
- '"d4dacf994f63ad8e51bb4b056f043b11"'
|
|
29
|
+
Cache-Control:
|
|
30
|
+
- max-age=0, private, must-revalidate
|
|
31
|
+
X-Request-Id:
|
|
32
|
+
- 2f818365-48ad-43d6-bc02-e51839f81309
|
|
33
|
+
X-Runtime:
|
|
34
|
+
- '0.337432'
|
|
35
|
+
Server:
|
|
36
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2013-11-22) OpenSSL/1.0.1j
|
|
37
|
+
Date:
|
|
38
|
+
- Tue, 24 Mar 2015 11:28:41 GMT
|
|
39
|
+
Content-Length:
|
|
40
|
+
- '43'
|
|
41
|
+
Connection:
|
|
42
|
+
- Keep-Alive
|
|
43
|
+
body:
|
|
44
|
+
encoding: UTF-8
|
|
45
|
+
string: ErrCode=E01|E01&ErrInfo=E01010001|E01010010
|
|
46
|
+
http_version:
|
|
47
|
+
recorded_at: Tue, 24 Mar 2015 11:28:41 GMT
|
|
48
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://<API_ENDPOINT>/payment/EntryTran.idPass
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: OrderID=T-10&JobCd=AUTH&Amount=1&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
12
|
+
User-Agent:
|
|
13
|
+
- RubyGem/GmoPayment/0.0.1
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
16
|
+
Content-Length:
|
|
17
|
+
- '71'
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/x-www-form-urlencoded
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Server:
|
|
26
|
+
- nginx
|
|
27
|
+
Date:
|
|
28
|
+
- Tue, 24 Mar 2015 12:00:06 GMT
|
|
29
|
+
Content-Type:
|
|
30
|
+
- text/plain;charset=Windows-31J
|
|
31
|
+
Transfer-Encoding:
|
|
32
|
+
- chunked
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
body:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: AccessID=1fc40d77d7074a5ec74a16d880237cc4&AccessPass=488448d568e4459ed978a787002469a5
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Tue, 24 Mar 2015 12:00:07 GMT
|
|
40
|
+
- request:
|
|
41
|
+
method: post
|
|
42
|
+
uri: https://<API_ENDPOINT>/payment/ExecTran.idPass
|
|
43
|
+
body:
|
|
44
|
+
encoding: US-ASCII
|
|
45
|
+
string: AccessID=1fc40d77d7074a5ec74a16d880237cc4&AccessPass=488448d568e4459ed978a787002469a5&OrderID=T-10&CardNo=<CARD_NO_N>&Expire=<CARD_EXPIRE>&Method=1&ClientField1=DEVTEST&ClientField2=%8AJ%94%AD%83e%83X%83g&ClientField3=%23change_tran&ClientFieldFlag=1
|
|
46
|
+
headers:
|
|
47
|
+
Accept:
|
|
48
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
49
|
+
User-Agent:
|
|
50
|
+
- RubyGem/GmoPayment/0.0.1
|
|
51
|
+
Accept-Encoding:
|
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
53
|
+
Content-Length:
|
|
54
|
+
- '246'
|
|
55
|
+
Content-Type:
|
|
56
|
+
- application/x-www-form-urlencoded
|
|
57
|
+
response:
|
|
58
|
+
status:
|
|
59
|
+
code: 200
|
|
60
|
+
message: OK
|
|
61
|
+
headers:
|
|
62
|
+
Server:
|
|
63
|
+
- nginx
|
|
64
|
+
Date:
|
|
65
|
+
- Tue, 24 Mar 2015 12:00:07 GMT
|
|
66
|
+
Content-Type:
|
|
67
|
+
- text/plain;charset=Windows-31J
|
|
68
|
+
Transfer-Encoding:
|
|
69
|
+
- chunked
|
|
70
|
+
Connection:
|
|
71
|
+
- close
|
|
72
|
+
body:
|
|
73
|
+
encoding: ASCII-8BIT
|
|
74
|
+
string: !binary |-
|
|
75
|
+
QUNTPTAmT3JkZXJJRD1ULTEwJkZvcndhcmQ9MmE5OTY2MiZNZXRob2Q9MSZQ
|
|
76
|
+
YXlUaW1lcz0mQXBwcm92ZT02NjExMjYwJlRyYW5JRD0xNTAzMjQyMTAwMTEx
|
|
77
|
+
MTExMTExMTExODcyMzcyJlRyYW5EYXRlPTIwMTUwMzI0MjEwMDA3JkNoZWNr
|
|
78
|
+
U3RyaW5nPTY3ZGUzMmIwNGRiNTU3ZDc5ZGYzY2RmMDM3MjBiMDkyJkNsaWVu
|
|
79
|
+
dEZpZWxkMT1ERVZURVNUJkNsaWVudEZpZWxkMj2KSpStg2WDWINnJkNsaWVu
|
|
80
|
+
dEZpZWxkMz0jY2hhbmdlX3RyYW4=
|
|
81
|
+
http_version:
|
|
82
|
+
recorded_at: Tue, 24 Mar 2015 12:00:08 GMT
|
|
83
|
+
- request:
|
|
84
|
+
method: post
|
|
85
|
+
uri: https://<API_ENDPOINT>/payment/ChangeTran.idPass
|
|
86
|
+
body:
|
|
87
|
+
encoding: US-ASCII
|
|
88
|
+
string: AccessID=1fc40d77d7074a5ec74a16d880237cc4&AccessPass=488448d568e4459ed978a787002469a5&JobCd=AUTH&Amount=2&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
|
89
|
+
headers:
|
|
90
|
+
Accept:
|
|
91
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
92
|
+
User-Agent:
|
|
93
|
+
- RubyGem/GmoPayment/0.0.1
|
|
94
|
+
Accept-Encoding:
|
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
96
|
+
Content-Length:
|
|
97
|
+
- '144'
|
|
98
|
+
Content-Type:
|
|
99
|
+
- application/x-www-form-urlencoded
|
|
100
|
+
response:
|
|
101
|
+
status:
|
|
102
|
+
code: 200
|
|
103
|
+
message: OK
|
|
104
|
+
headers:
|
|
105
|
+
Server:
|
|
106
|
+
- nginx
|
|
107
|
+
Date:
|
|
108
|
+
- Tue, 24 Mar 2015 12:00:09 GMT
|
|
109
|
+
Content-Type:
|
|
110
|
+
- text/plain;charset=Windows-31J
|
|
111
|
+
Transfer-Encoding:
|
|
112
|
+
- chunked
|
|
113
|
+
Connection:
|
|
114
|
+
- close
|
|
115
|
+
body:
|
|
116
|
+
encoding: UTF-8
|
|
117
|
+
string: AccessID=1fc40d77d7074a5ec74a16d880237cc4&AccessPass=488448d568e4459ed978a787002469a5&Forward=2a99662&Approve=6611262&TranID=1503242100111111111111872374&TranDate=20150324210009
|
|
118
|
+
http_version:
|
|
119
|
+
recorded_at: Tue, 24 Mar 2015 12:00:10 GMT
|
|
120
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://<API_ENDPOINT>/payment/SaveMember.idPass
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: MemberID=T-M7&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
12
|
+
User-Agent:
|
|
13
|
+
- RubyGem/GmoPayment/0.0.1
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
16
|
+
Content-Length:
|
|
17
|
+
- '52'
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/x-www-form-urlencoded
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Server:
|
|
26
|
+
- nginx
|
|
27
|
+
Date:
|
|
28
|
+
- Tue, 24 Mar 2015 12:00:05 GMT
|
|
29
|
+
Content-Type:
|
|
30
|
+
- text/plain;charset=Windows-31J
|
|
31
|
+
Transfer-Encoding:
|
|
32
|
+
- chunked
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
body:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: MemberID=T-M7
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Tue, 24 Mar 2015 12:00:06 GMT
|
|
40
|
+
- request:
|
|
41
|
+
method: post
|
|
42
|
+
uri: https://<API_ENDPOINT>/payment/SaveCard.idPass
|
|
43
|
+
body:
|
|
44
|
+
encoding: US-ASCII
|
|
45
|
+
string: MemberID=T-M7&CardNo=<CARD_NO_N>&Expire=<CARD_EXPIRE>&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
|
46
|
+
headers:
|
|
47
|
+
Accept:
|
|
48
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
49
|
+
User-Agent:
|
|
50
|
+
- RubyGem/GmoPayment/0.0.1
|
|
51
|
+
Accept-Encoding:
|
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
53
|
+
Content-Length:
|
|
54
|
+
- '88'
|
|
55
|
+
Content-Type:
|
|
56
|
+
- application/x-www-form-urlencoded
|
|
57
|
+
response:
|
|
58
|
+
status:
|
|
59
|
+
code: 200
|
|
60
|
+
message: OK
|
|
61
|
+
headers:
|
|
62
|
+
Server:
|
|
63
|
+
- nginx
|
|
64
|
+
Date:
|
|
65
|
+
- Tue, 24 Mar 2015 12:00:06 GMT
|
|
66
|
+
Content-Type:
|
|
67
|
+
- text/plain;charset=Windows-31J
|
|
68
|
+
Transfer-Encoding:
|
|
69
|
+
- chunked
|
|
70
|
+
Connection:
|
|
71
|
+
- close
|
|
72
|
+
body:
|
|
73
|
+
encoding: UTF-8
|
|
74
|
+
string: CardSeq=0&CardNo=<CARD_NO_N_MASK>&Forward=2a99662
|
|
75
|
+
http_version:
|
|
76
|
+
recorded_at: Tue, 24 Mar 2015 12:00:07 GMT
|
|
77
|
+
- request:
|
|
78
|
+
method: post
|
|
79
|
+
uri: https://<API_ENDPOINT>/payment/DeleteCard.idPass
|
|
80
|
+
body:
|
|
81
|
+
encoding: US-ASCII
|
|
82
|
+
string: MemberID=T-M7&CardSeq=0&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
|
83
|
+
headers:
|
|
84
|
+
Accept:
|
|
85
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
86
|
+
User-Agent:
|
|
87
|
+
- RubyGem/GmoPayment/0.0.1
|
|
88
|
+
Accept-Encoding:
|
|
89
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
90
|
+
Content-Length:
|
|
91
|
+
- '62'
|
|
92
|
+
Content-Type:
|
|
93
|
+
- application/x-www-form-urlencoded
|
|
94
|
+
response:
|
|
95
|
+
status:
|
|
96
|
+
code: 200
|
|
97
|
+
message: OK
|
|
98
|
+
headers:
|
|
99
|
+
Server:
|
|
100
|
+
- nginx
|
|
101
|
+
Date:
|
|
102
|
+
- Tue, 24 Mar 2015 12:00:06 GMT
|
|
103
|
+
Content-Type:
|
|
104
|
+
- text/plain;charset=Windows-31J
|
|
105
|
+
Transfer-Encoding:
|
|
106
|
+
- chunked
|
|
107
|
+
Connection:
|
|
108
|
+
- close
|
|
109
|
+
body:
|
|
110
|
+
encoding: UTF-8
|
|
111
|
+
string: CardSeq=0
|
|
112
|
+
http_version:
|
|
113
|
+
recorded_at: Tue, 24 Mar 2015 12:00:07 GMT
|
|
114
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://<API_ENDPOINT>/payment/SaveMember.idPass
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: MemberID=T-M3&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
12
|
+
User-Agent:
|
|
13
|
+
- RubyGem/GmoPayment/0.0.1
|
|
14
|
+
Accept-Encoding:
|
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
16
|
+
Content-Length:
|
|
17
|
+
- '52'
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/x-www-form-urlencoded
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Server:
|
|
26
|
+
- nginx
|
|
27
|
+
Date:
|
|
28
|
+
- Tue, 24 Mar 2015 12:00:21 GMT
|
|
29
|
+
Content-Type:
|
|
30
|
+
- text/plain;charset=Windows-31J
|
|
31
|
+
Transfer-Encoding:
|
|
32
|
+
- chunked
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
body:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: MemberID=T-M3
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Tue, 24 Mar 2015 12:00:22 GMT
|
|
40
|
+
- request:
|
|
41
|
+
method: post
|
|
42
|
+
uri: https://<API_ENDPOINT>/payment/DeleteMember.idPass
|
|
43
|
+
body:
|
|
44
|
+
encoding: US-ASCII
|
|
45
|
+
string: MemberID=T-M3&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
|
46
|
+
headers:
|
|
47
|
+
Accept:
|
|
48
|
+
- application/x-www-form-urlencoded;q=1.0,*/*;q=0.5
|
|
49
|
+
User-Agent:
|
|
50
|
+
- RubyGem/GmoPayment/0.0.1
|
|
51
|
+
Accept-Encoding:
|
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
53
|
+
Content-Length:
|
|
54
|
+
- '52'
|
|
55
|
+
Content-Type:
|
|
56
|
+
- application/x-www-form-urlencoded
|
|
57
|
+
response:
|
|
58
|
+
status:
|
|
59
|
+
code: 200
|
|
60
|
+
message: OK
|
|
61
|
+
headers:
|
|
62
|
+
Server:
|
|
63
|
+
- nginx
|
|
64
|
+
Date:
|
|
65
|
+
- Tue, 24 Mar 2015 12:00:21 GMT
|
|
66
|
+
Content-Type:
|
|
67
|
+
- text/plain;charset=Windows-31J
|
|
68
|
+
Transfer-Encoding:
|
|
69
|
+
- chunked
|
|
70
|
+
Connection:
|
|
71
|
+
- close
|
|
72
|
+
body:
|
|
73
|
+
encoding: UTF-8
|
|
74
|
+
string: MemberID=T-M3
|
|
75
|
+
http_version:
|
|
76
|
+
recorded_at: Tue, 24 Mar 2015 12:00:22 GMT
|
|
77
|
+
recorded_with: VCR 2.9.3
|