gmo 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +20 -1
  3. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_deposit_gets_data_about_a_deposit.yml +38 -0
  4. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
  5. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_account_gets_data_about_an_account.yml +38 -0
  6. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_deposit_gets_data_about_a_deposit.yml +38 -0
  7. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
  8. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_delete_account_gets_data_about_an_account.yml +38 -0
  9. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_account_gets_data_about_an_account.yml +38 -0
  10. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_balance_gets_data_about_balance.yml +38 -0
  11. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_deposit_gets_data_about_a_deposit.yml +38 -0
  12. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
  13. data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_update_account_gets_data_about_an_account.yml +38 -0
  14. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_brandtoken_gets_data_about_order.yml +108 -0
  15. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_brandtoken_gets_data_about_a_transaction.yml +38 -0
  16. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_gets_data_about_a_transaction.yml +73 -0
  17. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_parameter_contains_Japanese_characters_should_correctly_handle_Japanese.yml +73 -0
  18. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_doesn_t_require_card_info_if_token_is_present.yml +69 -0
  19. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_refund_tran_brandtoken_gets_data_about_a_transaction.yml +108 -0
  20. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_sales_tran_brandtoken_gets_data_about_a_transaction.yml +143 -0
  21. data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_void_tran_brandtoken_gets_data_about_order.yml +108 -0
  22. data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_exec_tran_brandtoken_got_data.yml +73 -0
  23. data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_brandtoken_got_data.yml +108 -0
  24. data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_brandtoken_gets_data_about_a_brandtoken.yml +73 -0
  25. data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_brandtoken_gets_data_about_a_brandtoken.yml +74 -0
  26. data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_card_detail_by_member_id_gets_data_about_card_detail.yml +36 -0
  27. data/lib/gmo.rb +6 -1
  28. data/lib/gmo/const.rb +1159 -1
  29. data/lib/gmo/errors.rb +20 -2
  30. data/lib/gmo/remittance_api.rb +329 -0
  31. data/lib/gmo/shop_and_site_api.rb +73 -0
  32. data/lib/gmo/shop_api.rb +223 -2
  33. data/lib/gmo/site_api.rb +64 -0
  34. data/lib/gmo/version.rb +1 -1
  35. data/spec/gmo/{error_spec.rb → errors_spec.rb} +11 -2
  36. data/spec/gmo/remittance_api_spec.rb +504 -0
  37. data/spec/gmo/shop_and_site_api_spec.rb +74 -0
  38. data/spec/gmo/shop_api_spec.rb +278 -0
  39. data/spec/gmo/site_api_spec.rb +84 -1
  40. data/spec/support/config.example.yml +5 -0
  41. data/spec/support/config.yml +5 -0
  42. data/spec/support/config_loader.rb +1 -1
  43. data/spec/support/vcr.rb +9 -2
  44. metadata +30 -4
@@ -0,0 +1,143 @@
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>89826&JobCd=AUTH&Amount=<SHOP_PASS>000&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:57:07 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:57:07 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&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/TradedBrandtoken.idPass
76
+ body:
77
+ encoding: UTF-8
78
+ string: MemberID=<SHOP_PASS>502<SHOP_PASS>89924&OrderID=<SHOP_PASS>502<SHOP_PASS>89924&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>&SiteID=<SITE_ID>&SitePass=<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:58:45 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: TokenSeq=0&CardNoToken=*************<SHOP_PASS><SHOP_PASS><SHOP_PASS>&Forward=2a99663
106
+ http_version:
107
+ recorded_at: Tue, 08 Aug 2017 10:58:45 GMT
108
+ - request:
109
+ method: post
110
+ uri: https://<HOST>/payment/SalesTranBrandtoken.idPass
111
+ body:
112
+ encoding: UTF-8
113
+ string: AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f&OrderID=<SHOP_PASS>502<SHOP_PASS>89957&Amount=<SHOP_PASS>000&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
114
+ headers:
115
+ Accept-Encoding:
116
+ - gzip;q=<SHOP_PASS>.0,deflate;q=0.6,identity;q=0.3
117
+ Accept:
118
+ - "*/*"
119
+ User-Agent:
120
+ - Ruby
121
+ response:
122
+ status:
123
+ code: 200
124
+ message: OK
125
+ headers:
126
+ Server:
127
+ - nginx
128
+ Date:
129
+ - Tue, 08 Aug 20<SHOP_PASS>7 <SHOP_PASS>0:59:<SHOP_PASS>8 GMT
130
+ Content-Type:
131
+ - text/plain;charset=Shift_JIS
132
+ Content-Length:
133
+ - '29'
134
+ Connection:
135
+ - close
136
+ Content-Language:
137
+ - ja-JP
138
+ body:
139
+ encoding: UTF-8
140
+ string: AccessID=139f8ec33a07c55f406937c52ce4473d&AccessPass=2689b204d2c17192fa35f9269fa7e744&Status=SALES&Forward=2a99663&Approve=5537883&TranID=1707311620111111111111771220&TranDate=20170731162256
141
+ http_version:
142
+ recorded_at: Tue, 08 Aug 2017 10:59:18 GMT
143
+ recorded_with: VCR 3.0.3
@@ -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>89293&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:48:<SHOP_PASS>4 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:48:14 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&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/VoidTranBrandtoken.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&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,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>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
+ - 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>77572&AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f&TokenType=APay&Token=base64encodedtoken&MemberID=<SHOP_PASS>502<SHOP_PASS>77572&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>&SiteID=<SITE_ID>&SitePass=<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:32:53 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=<SHOP_PASS>502<SHOP_PASS>77572&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>=&ClientField2=&ClientField3=
71
+ http_version:
72
+ recorded_at: Tue, 08 Aug 2017 07:32:53 GMT
73
+ recorded_with: VCR 3.0.3
@@ -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>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
+ - 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>77572&AccessID=<SHOP_PASS>da06<SHOP_PASS>87345d6<SHOP_PASS>3ce206f4cd05bc5322&AccessPass=45a2<SHOP_PASS>e63323c3795d26e22338eaa6b7f&TokenType=APay&Token=base64encodedtoken&MemberID=<SHOP_PASS>502<SHOP_PASS>77572&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>&SiteID=<SITE_ID>&SitePass=<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:32:53 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=<SHOP_PASS>502<SHOP_PASS>77572&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>=&ClientField2=&ClientField3=
71
+ http_version:
72
+ recorded_at: Tue, 08 Aug 2017 07:32:53 GMT
73
+ - request:
74
+ method: post
75
+ uri: https://<HOST>/payment/TradedBrandtoken.idPass
76
+ body:
77
+ encoding: UTF-8
78
+ string: OrderID=<SHOP_PASS>502<SHOP_PASS>77838&MemberID=<SHOP_PASS>502<SHOP_PASS>77838&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>&SiteID=<SITE_ID>&SitePass=<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 07:37:<SHOP_PASS>8 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: TokenSeq=0&CardNoToken=*************111&Forward=2a99663
106
+ http_version:
107
+ recorded_at: Tue, 08 Aug 2017 07:37:18 GMT
108
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<HOST>/payment/TradedBrandtoken.idPass
6
+ body:
7
+ encoding: UTF-8
8
+ string: OrderID=<SHOP_PASS>502<SHOP_PASS>9<SHOP_PASS>295&MemberID=<SHOP_PASS>502<SHOP_PASS>9<SHOP_PASS>295&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>&SiteID=<SITE_ID>&SitePass=<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><SHOP_PASS>:2<SHOP_PASS>:35 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: TokenSeq=0&CardNoToken=*************<SHOP_PASS><SHOP_PASS><SHOP_PASS>&Forward=2a99663
36
+ http_version:
37
+ recorded_at: Tue, 08 Aug 2017 11:21:35 GMT
38
+ - request:
39
+ method: post
40
+ uri: https://<HOST>/payment/DeleteBrandtoken.idPass
41
+ body:
42
+ encoding: UTF-8
43
+ string: MemberID=<SHOP_PASS>502<SHOP_PASS>9<SHOP_PASS>329&SeqMode=0&TokenSeq=0&SiteID=<SITE_ID>&SitePass=<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 <SHOP_PASS><SHOP_PASS>:22:09 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: TokenSeq=0
71
+ http_version:
72
+ recorded_at: Tue, 08 Aug 2017 11:22:09 GMT
73
+ recorded_with: VCR 3.0.3