gmo 0.3.0 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +5 -9
- data/CHANGELOG.md +37 -1
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_deposit_gets_data_about_a_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_deposit_gets_data_about_a_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_delete_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_balance_gets_data_about_balance.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_deposit_gets_data_about_a_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_update_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_brandtoken_gets_data_about_order.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_cvs_cancel_gets_data_about_a_transaction.yml +63 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_brandtoken_gets_data_about_a_transaction.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_docomo_gets_data_about_a_transaction.yml +35 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_rakuten_id_gets_data_about_a_transaction.yml +35 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_gets_data_about_a_transaction.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_parameter_contains_Japanese_characters_should_correctly_handle_Japanese.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_docomo_gets_data_about_a_transaction.yml +67 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_doesn_t_require_card_info_if_token_is_present.yml +69 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_rakuten_id_gets_data_about_a_transaction.yml +67 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_refund_tran_brandtoken_gets_data_about_a_transaction.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_sales_tran_brandtoken_gets_data_about_a_transaction.yml +143 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_secure_tran_gets_data_about_a_transaction.yml +36 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_void_tran_brandtoken_gets_data_about_order.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/secure_tran_request_params.yml +2 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_exec_tran_brandtoken_got_data.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_brandtoken_got_data.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_brandtoken_gets_data_about_a_brandtoken.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_brandtoken_gets_data_about_a_brandtoken.yml +74 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_card_detail_by_member_id_gets_data_about_card_detail.yml +36 -0
- data/lib/gmo.rb +10 -3
- data/lib/gmo/const.rb +2502 -3
- data/lib/gmo/errors.rb +22 -4
- data/lib/gmo/remittance_api.rb +331 -0
- data/lib/gmo/shop_and_site_api.rb +77 -2
- data/lib/gmo/shop_api.rb +315 -5
- data/lib/gmo/site_api.rb +70 -3
- data/lib/gmo/version.rb +2 -2
- data/spec/gmo/{error_spec.rb → errors_spec.rb} +11 -2
- data/spec/gmo/remittance_api_spec.rb +506 -0
- data/spec/gmo/shop_and_site_api_spec.rb +83 -3
- data/spec/gmo/shop_api_spec.rb +429 -1
- data/spec/gmo/site_api_spec.rb +88 -1
- data/spec/support/config.example.yml +5 -0
- data/spec/support/config.yml +5 -0
- data/spec/support/config_loader.rb +1 -1
- data/spec/support/vcr.rb +9 -2
- metadata +41 -8
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<REMITTANCE_HOST>/api/MailDepositSearch.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Deposit_ID=dep0000<SHOP_PASS>&Shop_ID=<REMITTANCE_SHOP_ID>&Shop_Pass=<REMITTANCE_SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 0<SHOP_PASS> May 20<SHOP_PASS>7 05:58:29 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Windows-3<SHOP_PASS>J
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: Deposit_ID=dep00001&Mail_Address=anyutzy+test@demo.com&Shop_Mail_Address=anyutzy@demo.com&Account_Name=An Yutzy&Amount=1000&Expire=20170503&Status=0
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 01 May 2017 05:58:30 GMT
|
38
|
+
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_update_account_gets_data_about_an_account.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<REMITTANCE_HOST>/api/AccountRegistration.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Bank_ID=bank0000<SHOP_PASS>&Bank_Code=000<SHOP_PASS>&Branch_Code=8<SHOP_PASS>3&Account_Type=<SHOP_PASS>&Account_Name=An+Yutzy&Account_Number=00<SHOP_PASS>2345&Branch_Code_Jpbank=00567&Account_Number_Jpbank=0<SHOP_PASS>234567&Free=foobar&Method=2&Shop_ID=<REMITTANCE_SHOP_ID>&Shop_Pass=<REMITTANCE_SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 0<SHOP_PASS> May 20<SHOP_PASS>7 05:58:<SHOP_PASS>9 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Windows-3<SHOP_PASS>J
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: Bank_ID=bank00001&Method=2
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 01 May 2017 05:58:19 GMT
|
38
|
+
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_brandtoken_gets_data_about_order.yml
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranBrandtoken.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>889<SHOP_PASS>3&JobCd=AUTH&Amount=<SHOP_PASS>00&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 <SHOP_PASS>0:4<SHOP_PASS>:55 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Shift_JIS
|
27
|
+
Content-Length:
|
28
|
+
- '29'
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Language:
|
32
|
+
- ja-JP
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 08 Aug 2017 10:41:55 GMT
|
38
|
+
- request:
|
39
|
+
method: post
|
40
|
+
uri: https://<HOST>/payment/ExecTranBrandtoken.idPass
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>78987&AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f&TokenType=APay&Token=base64encodedtoken&ClientField<SHOP_PASS>=client_field<SHOP_PASS>&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
44
|
+
headers:
|
45
|
+
Accept-Encoding:
|
46
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
47
|
+
Accept:
|
48
|
+
- "*/*"
|
49
|
+
User-Agent:
|
50
|
+
- Ruby
|
51
|
+
response:
|
52
|
+
status:
|
53
|
+
code: 200
|
54
|
+
message: OK
|
55
|
+
headers:
|
56
|
+
Server:
|
57
|
+
- nginx
|
58
|
+
Date:
|
59
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 07:56:28 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/plain;charset=Shift_JIS
|
62
|
+
Content-Length:
|
63
|
+
- '29'
|
64
|
+
Connection:
|
65
|
+
- close
|
66
|
+
Content-Language:
|
67
|
+
- ja-JP
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: Status=AUTH&OrderID=597ae8c36<SHOP_PASS>20b23a3c000<SHOP_PASS>4e&Forward=2a99663&Approve=5487394&TranID=<SHOP_PASS>70728<SHOP_PASS>634<SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS><SHOP_PASS>77<SHOP_PASS>2<SHOP_PASS>6&TranDate=20<SHOP_PASS>70728<SHOP_PASS>63453&ClientField<SHOP_PASS>=client_field<SHOP_PASS>&ClientField2=&ClientField3=
|
71
|
+
http_version:
|
72
|
+
recorded_at: Tue, 08 Aug 2017 07:56:28 GMT
|
73
|
+
- request:
|
74
|
+
method: post
|
75
|
+
uri: https://<HOST>/payment/ChangeTranBrandtoken.idPass
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>89054&AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f&JobCd=CAPTURE&Amount=<SHOP_PASS>500&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
79
|
+
headers:
|
80
|
+
Accept-Encoding:
|
81
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
82
|
+
Accept:
|
83
|
+
- "*/*"
|
84
|
+
User-Agent:
|
85
|
+
- Ruby
|
86
|
+
response:
|
87
|
+
status:
|
88
|
+
code: 200
|
89
|
+
message: OK
|
90
|
+
headers:
|
91
|
+
Server:
|
92
|
+
- nginx
|
93
|
+
Date:
|
94
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 <SHOP_PASS>0:44:<SHOP_PASS>5 GMT
|
95
|
+
Content-Type:
|
96
|
+
- text/plain;charset=Shift_JIS
|
97
|
+
Content-Length:
|
98
|
+
- '29'
|
99
|
+
Connection:
|
100
|
+
- close
|
101
|
+
Content-Language:
|
102
|
+
- ja-JP
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: AccessID=21170701482c86c3b88ff72b83bfd363&AccessPass=51f36feba120de1e6e29532e5a3a5e3e&Status=CAPTURE&Forward=2a99663&Approve=5538477&TranID=1707311633111111111111771224&TranDate=20170731163343
|
106
|
+
http_version:
|
107
|
+
recorded_at: Tue, 08 Aug 2017 10:44:15 GMT
|
108
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranCvs.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=1362106772&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Fri, 01 Mar 2013 02:59:32 GMT
|
21
|
+
Connection:
|
22
|
+
- close
|
23
|
+
Content-Type:
|
24
|
+
- text/plain;charset=Windows-31J
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: AccessID=3618be802c7ac572414274731e50cb6c&AccessPass=4099664bd4b110800e09805539d1d7b5
|
30
|
+
http_version:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:33 GMT
|
32
|
+
- request:
|
33
|
+
method: post
|
34
|
+
uri: https://<HOST>/payment/CvsCancel.idPass
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: OrderID=1365660033&AccessID=3618be802c7ac572414274731e50cb6c&AccessPass=4099664bd4b110800e09805539d1d7b5&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
38
|
+
headers:
|
39
|
+
Accept-Encoding:
|
40
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
|
+
Accept:
|
42
|
+
- '*/*'
|
43
|
+
User-Agent:
|
44
|
+
- Ruby
|
45
|
+
response:
|
46
|
+
status:
|
47
|
+
code: 200
|
48
|
+
message: OK
|
49
|
+
headers:
|
50
|
+
Date:
|
51
|
+
- Thu, 11 Apr 2013 06:00:33 GMT
|
52
|
+
Connection:
|
53
|
+
- close
|
54
|
+
Content-Type:
|
55
|
+
- text/plain;charset=Windows-31J
|
56
|
+
Transfer-Encoding:
|
57
|
+
- chunked
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: OrderID=1365660033&Status=CANCEL
|
61
|
+
http_version:
|
62
|
+
recorded_at: Thu, 11 Apr 2013 06:00:33 GMT
|
63
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranBrandtoken.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>77398&JobCd=AUTH&Amount=<SHOP_PASS>00&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 07:29:58 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Shift_JIS
|
27
|
+
Content-Length:
|
28
|
+
- '29'
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Language:
|
32
|
+
- ja-JP
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 08 Aug 2017 07:29:59 GMT
|
38
|
+
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_docomo_gets_data_about_a_transaction.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranDocomo.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=<TOKEN>6092250<TOKEN>3&JobCd=AUTH&Amount=<TOKEN>00&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<TOKEN>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 29 Dec 2020 06:56:54 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Windows-3<TOKEN>J
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: AccessID=bcda2c8fbc952<TOKEN>5dd37ad8f2a37<TOKEN>facf&AccessPass=fd3<TOKEN>337495ade97b96<TOKEN>2bb7cb9228b58
|
34
|
+
recorded_at: Tue, 29 Dec 2020 06:56:54 GMT
|
35
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranRakutenId.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=<TOKEN>609222<TOKEN>40&JobCd=AUTH&Amount=<TOKEN>00&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<TOKEN>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 29 Dec 2020 06:09:00 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Windows-3<TOKEN>J
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: OrderID=<TOKEN>609222<TOKEN>40&AccessID=8e9d8824c386409e247eb<TOKEN>badf34ff68&AccessPass=c963<TOKEN>bd080cebf5c0869feef<TOKEN>a638ddb
|
34
|
+
recorded_at: Tue, 29 Dec 2020 06:09:00 GMT
|
35
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranBrandtoken.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>78834&JobCd=AUTH&Amount=<SHOP_PASS>00&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 07:53:55 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Shift_JIS
|
27
|
+
Content-Length:
|
28
|
+
- '29'
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Language:
|
32
|
+
- ja-JP
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 08 Aug 2017 07:53:55 GMT
|
38
|
+
- request:
|
39
|
+
method: post
|
40
|
+
uri: https://<HOST>/payment/ExecTranBrandtoken.idPass
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>78987&AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f&TokenType=APay&Token=base64encodedtoken&ClientField<SHOP_PASS>=client_field<SHOP_PASS>&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
44
|
+
headers:
|
45
|
+
Accept-Encoding:
|
46
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
47
|
+
Accept:
|
48
|
+
- "*/*"
|
49
|
+
User-Agent:
|
50
|
+
- Ruby
|
51
|
+
response:
|
52
|
+
status:
|
53
|
+
code: 200
|
54
|
+
message: OK
|
55
|
+
headers:
|
56
|
+
Server:
|
57
|
+
- nginx
|
58
|
+
Date:
|
59
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 07:56:28 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/plain;charset=Shift_JIS
|
62
|
+
Content-Length:
|
63
|
+
- '29'
|
64
|
+
Connection:
|
65
|
+
- close
|
66
|
+
Content-Language:
|
67
|
+
- ja-JP
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: Status=AUTH&OrderID=597ae8c36120b23a3c00014e&Forward=2a99663&Approve=5487394&TranID=1707281634111111111111771216&TranDate=20170728163453&ClientField1=client_field1&ClientField2=&ClientField3=
|
71
|
+
http_version:
|
72
|
+
recorded_at: Tue, 08 Aug 2017 07:56:28 GMT
|
73
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranBrandtoken.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>78988&JobCd=AUTH&Amount=<SHOP_PASS>00&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 07:56:29 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Shift_JIS
|
27
|
+
Content-Length:
|
28
|
+
- '29'
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Language:
|
32
|
+
- ja-JP
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 08 Aug 2017 07:56:29 GMT
|
38
|
+
- request:
|
39
|
+
method: post
|
40
|
+
uri: https://<HOST>/payment/ExecTranBrandtoken.idPass
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: OrderID=<SHOP_PASS>502<SHOP_PASS>78987&AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f&TokenType=APay&Token=base64encodedtoken&ClientField<SHOP_PASS>=client_field<SHOP_PASS>&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
44
|
+
headers:
|
45
|
+
Accept-Encoding:
|
46
|
+
- gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
|
47
|
+
Accept:
|
48
|
+
- "*/*"
|
49
|
+
User-Agent:
|
50
|
+
- Ruby
|
51
|
+
response:
|
52
|
+
status:
|
53
|
+
code: 200
|
54
|
+
message: OK
|
55
|
+
headers:
|
56
|
+
Server:
|
57
|
+
- nginx
|
58
|
+
Date:
|
59
|
+
- Tue, 08 Aug 20<SHOP_PASS>7 07:56:28 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/plain;charset=Shift_JIS
|
62
|
+
Content-Length:
|
63
|
+
- '29'
|
64
|
+
Connection:
|
65
|
+
- close
|
66
|
+
Content-Language:
|
67
|
+
- ja-JP
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: Status=AUTH&OrderID=597ae8c36120b23a3c00014e&Forward=2a99663&Approve=5487394&TranID=1707281634111111111111771216&TranDate=20170728163453&ClientField1=〜−¢£¬−‖①ほげほげhogehoge&ClientField2=&ClientField3=
|
71
|
+
http_version:
|
72
|
+
recorded_at: Tue, 08 Aug 2017 07:56:28 GMT
|
73
|
+
recorded_with: VCR 3.0.3
|