gmo 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +22 -0
- data/README.ja.md +1 -3
- data/README.md +1 -3
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_alter_tran_change_order_auth_to_sale.yml +15 -15
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_alter_tran_gets_data_about_order.yml +15 -15
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_alter_tran_got_error_if_missing_options.yml +3 -3
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_gets_data_about_order.yml +15 -15
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_got_error_if_missing_options.yml +3 -3
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_gets_data_about_a_transaction.yml +6 -6
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_got_error_if_missing_options.yml +5 -5
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_gets_data_about_a_transaction.yml +35 -6
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_got_error_if_missing_options.yml +5 -5
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_gets_data_about_order.yml +5 -5
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_got_error_if_missing_options.yml +3 -3
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_gets_data_about_order.yml +7 -9
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_got_error_if_missing_options.yml +5 -7
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_card_got_error_if_missing_options.yml +3 -3
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_card_gets_data_about_a_card.yml +6 -8
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_member_gets_data_about_a_member.yml +35 -8
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_card_gets_data_about_a_card.yml +6 -8
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_member_gets_data_about_a_transaction.yml +6 -6
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_card_gets_data_about_a_card.yml +12 -16
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_member_gets_data_about_a_member.yml +14 -18
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_update_member_gets_data_about_a_transaction.yml +5 -5
- data/gmo.gemspec +1 -1
- data/lib/gmo.rb +3 -7
- data/lib/gmo/http_services.rb +1 -1
- data/lib/gmo/shop_and_site_api.rb +8 -8
- data/lib/gmo/shop_api.rb +7 -7
- data/lib/gmo/site_api.rb +7 -7
- data/lib/gmo/version.rb +1 -1
- data/spec/gmo/http_service_spec.rb +2 -7
- data/spec/gmo/shop_and_site_api_spec.rb +6 -1
- data/spec/gmo/shop_api_spec.rb +28 -10
- data/spec/gmo/site_api_spec.rb +24 -13
- data/spec/support/config.example.yml +2 -1
- data/spec/support/config.yml +2 -1
- data/spec/support/factory.rb +4 -0
- data/spec/support/vcr.rb +1 -0
- data/travis.yml +1 -0
- metadata +6 -6
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_member_got_error_if_missing_options.yml +0 -32
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2013 Tatsuo Kaniwa
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.ja.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
GMO
|
2
2
|
====
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/gmo.png)](https://rubygems.org/gems/gmo)
|
3
4
|
[![Build Status](https://travis-ci.org/t-k/gmo-payment-ruby.png)](https://travis-ci.org/t-k/gmo-payment-ruby)
|
4
5
|
|
5
6
|
GMO is a Ruby client library for the GMO Payment Platform, supporting the PG Multi Payment API, exec transactions, register users, and so on.
|
@@ -49,6 +50,3 @@ result = gmo.entry_tran(option)
|
|
49
50
|
Authors and Contributors
|
50
51
|
---
|
51
52
|
* [Tatsuo Kaniwa](https://github.com/t-k) - Creator of the project
|
52
|
-
|
53
|
-
Copyright
|
54
|
-
---
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
GMO
|
2
2
|
====
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/gmo.png)](https://rubygems.org/gems/gmo)
|
3
4
|
[![Build Status](https://travis-ci.org/t-k/gmo-payment-ruby.png)](https://travis-ci.org/t-k/gmo-payment-ruby)
|
4
5
|
|
5
6
|
GMO is a Ruby client library for the GMO Payment Platform, supporting the PG Multi Payment API, exec transactions, register users, and so on.
|
@@ -49,6 +50,3 @@ result = gmo.entry_tran(option)
|
|
49
50
|
Authors and Contributors
|
50
51
|
---
|
51
52
|
* [Tatsuo Kaniwa](https://github.com/t-k) - Creator of the project
|
52
|
-
|
53
|
-
Copyright
|
54
|
-
---
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/EntryTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: OrderID=
|
8
|
+
string: OrderID=1362106775&JobCd=AUTH&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:35 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -26,15 +26,15 @@ http_interactions:
|
|
26
26
|
- chunked
|
27
27
|
body:
|
28
28
|
encoding: US-ASCII
|
29
|
-
string: AccessID=
|
29
|
+
string: AccessID=675a12f12bb3bbf57aeb67acabfccecf&AccessPass=63144577f7f84c800fa2001cb7495f34
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:35 GMT
|
32
32
|
- request:
|
33
33
|
method: post
|
34
|
-
uri: https
|
34
|
+
uri: https://<HOST>/payment/ExecTran.idPass
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: AccessID=
|
37
|
+
string: AccessID=675a12f12bb3bbf57aeb67acabfccecf&AccessPass=63144577f7f84c800fa2001cb7495f34&OrderID=1362106775&Method=1&PayTimes=1&CardNo=4111111111111111&Expire=1405&HttpAccept=null&HttpUserAgent=null&DeviceCategory=0&ClientField1=null&ClientField2=null&ClientField3=null&ClientFieldFlag=0&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
38
38
|
headers:
|
39
39
|
Accept:
|
40
40
|
- ! '*/*'
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
message: OK
|
47
47
|
headers:
|
48
48
|
Date:
|
49
|
-
-
|
49
|
+
- Fri, 01 Mar 2013 02:59:36 GMT
|
50
50
|
Connection:
|
51
51
|
- close
|
52
52
|
Content-Type:
|
@@ -55,15 +55,15 @@ http_interactions:
|
|
55
55
|
- chunked
|
56
56
|
body:
|
57
57
|
encoding: US-ASCII
|
58
|
-
string: ACS=0&OrderID=
|
58
|
+
string: ACS=0&OrderID=1362106775&Forward=2a99662&Method=1&PayTimes=&Approve=6416261&TranID=1303011158111111111111198881&TranDate=20130301115936&CheckString=80fa168870356d57d4e3a755a940dbaf
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 01 Mar 2013 02:59:36 GMT
|
61
61
|
- request:
|
62
62
|
method: post
|
63
|
-
uri: https
|
63
|
+
uri: https://<HOST>/payment/AlterTran.idPass
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
|
-
string: AccessID=
|
66
|
+
string: AccessID=675a12f12bb3bbf57aeb67acabfccecf&AccessPass=63144577f7f84c800fa2001cb7495f34&JobCd=SALES&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
67
67
|
headers:
|
68
68
|
Accept:
|
69
69
|
- ! '*/*'
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: OK
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Fri, 01 Mar 2013 02:59:36 GMT
|
79
79
|
Connection:
|
80
80
|
- close
|
81
81
|
Content-Type:
|
@@ -84,7 +84,7 @@ http_interactions:
|
|
84
84
|
- chunked
|
85
85
|
body:
|
86
86
|
encoding: US-ASCII
|
87
|
-
string: AccessID=
|
87
|
+
string: AccessID=675a12f12bb3bbf57aeb67acabfccecf&AccessPass=63144577f7f84c800fa2001cb7495f34&Forward=2a99662&Approve=6416261&TranID=1303011158111111111111198881&TranDate=20130301115937
|
88
88
|
http_version:
|
89
|
-
recorded_at:
|
89
|
+
recorded_at: Fri, 01 Mar 2013 02:59:37 GMT
|
90
90
|
recorded_with: VCR 2.4.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/EntryTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: OrderID=
|
8
|
+
string: OrderID=1362106773&JobCd=AUTH&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:33 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -26,15 +26,15 @@ http_interactions:
|
|
26
26
|
- chunked
|
27
27
|
body:
|
28
28
|
encoding: US-ASCII
|
29
|
-
string: AccessID=
|
29
|
+
string: AccessID=f51483bb5892e25754eb85207a582b3c&AccessPass=07acabfd75965a1141fb9099080a8975
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:34 GMT
|
32
32
|
- request:
|
33
33
|
method: post
|
34
|
-
uri: https
|
34
|
+
uri: https://<HOST>/payment/ExecTran.idPass
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: AccessID=
|
37
|
+
string: AccessID=f51483bb5892e25754eb85207a582b3c&AccessPass=07acabfd75965a1141fb9099080a8975&OrderID=1362106773&Method=1&PayTimes=1&CardNo=4111111111111111&Expire=1405&HttpAccept=null&HttpUserAgent=null&DeviceCategory=0&ClientField1=null&ClientField2=null&ClientField3=null&ClientFieldFlag=0&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
38
38
|
headers:
|
39
39
|
Accept:
|
40
40
|
- ! '*/*'
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
message: OK
|
47
47
|
headers:
|
48
48
|
Date:
|
49
|
-
-
|
49
|
+
- Fri, 01 Mar 2013 02:59:34 GMT
|
50
50
|
Connection:
|
51
51
|
- close
|
52
52
|
Content-Type:
|
@@ -55,15 +55,15 @@ http_interactions:
|
|
55
55
|
- chunked
|
56
56
|
body:
|
57
57
|
encoding: US-ASCII
|
58
|
-
string: ACS=0&OrderID=
|
58
|
+
string: ACS=0&OrderID=1362106773&Forward=2a99662&Method=1&PayTimes=&Approve=6416259&TranID=1303011158111111111111198879&TranDate=20130301115934&CheckString=f0755b96e0a337a2d4edafc37edc2f2d
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 01 Mar 2013 02:59:34 GMT
|
61
61
|
- request:
|
62
62
|
method: post
|
63
|
-
uri: https
|
63
|
+
uri: https://<HOST>/payment/AlterTran.idPass
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
|
-
string: AccessID=
|
66
|
+
string: AccessID=f51483bb5892e25754eb85207a582b3c&AccessPass=07acabfd75965a1141fb9099080a8975&JobCd=RETURN&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
67
67
|
headers:
|
68
68
|
Accept:
|
69
69
|
- ! '*/*'
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: OK
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Fri, 01 Mar 2013 02:59:34 GMT
|
79
79
|
Connection:
|
80
80
|
- close
|
81
81
|
Content-Type:
|
@@ -84,7 +84,7 @@ http_interactions:
|
|
84
84
|
- chunked
|
85
85
|
body:
|
86
86
|
encoding: US-ASCII
|
87
|
-
string: AccessID=
|
87
|
+
string: AccessID=f51483bb5892e25754eb85207a582b3c&AccessPass=07acabfd75965a1141fb9099080a8975&Forward=2a99662&Approve=6416260&TranID=1303011158111111111111198880&TranDate=20130301115935
|
88
88
|
http_version:
|
89
|
-
recorded_at:
|
89
|
+
recorded_at: Fri, 01 Mar 2013 02:59:35 GMT
|
90
90
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_alter_tran_got_error_if_missing_options.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/AlterTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: AccessID=null&AccessPass=null&JobCd=SALES&Amount=null&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:37 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -28,5 +28,5 @@ http_interactions:
|
|
28
28
|
encoding: US-ASCII
|
29
29
|
string: ErrCode=E01|E01|E01&ErrInfo=E01090008|E01100008|E01110002
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:37 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/EntryTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: OrderID=
|
8
|
+
string: OrderID=1362106777&JobCd=AUTH&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:37 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -26,15 +26,15 @@ http_interactions:
|
|
26
26
|
- chunked
|
27
27
|
body:
|
28
28
|
encoding: US-ASCII
|
29
|
-
string: AccessID=
|
29
|
+
string: AccessID=53423389f2059b97ab86faa87ccf5ebc&AccessPass=7e0c971d8b63bd6924f88caec7dd056a
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:37 GMT
|
32
32
|
- request:
|
33
33
|
method: post
|
34
|
-
uri: https
|
34
|
+
uri: https://<HOST>/payment/ExecTran.idPass
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: AccessID=
|
37
|
+
string: AccessID=53423389f2059b97ab86faa87ccf5ebc&AccessPass=7e0c971d8b63bd6924f88caec7dd056a&OrderID=1362106777&Method=1&PayTimes=1&CardNo=4111111111111111&Expire=1405&HttpAccept=null&HttpUserAgent=null&DeviceCategory=0&ClientField1=null&ClientField2=null&ClientField3=null&ClientFieldFlag=0&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
38
38
|
headers:
|
39
39
|
Accept:
|
40
40
|
- ! '*/*'
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
message: OK
|
47
47
|
headers:
|
48
48
|
Date:
|
49
|
-
-
|
49
|
+
- Fri, 01 Mar 2013 02:59:37 GMT
|
50
50
|
Connection:
|
51
51
|
- close
|
52
52
|
Content-Type:
|
@@ -55,15 +55,15 @@ http_interactions:
|
|
55
55
|
- chunked
|
56
56
|
body:
|
57
57
|
encoding: US-ASCII
|
58
|
-
string: ACS=0&OrderID=
|
58
|
+
string: ACS=0&OrderID=1362106777&Forward=2a99662&Method=1&PayTimes=&Approve=6416262&TranID=1303011158111111111111198882&TranDate=20130301115938&CheckString=a2567a33f51c9e4f7e33c0d26e28dc9c
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 01 Mar 2013 02:59:38 GMT
|
61
61
|
- request:
|
62
62
|
method: post
|
63
|
-
uri: https
|
63
|
+
uri: https://<HOST>/payment/ChangeTran.idPass
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
|
-
string: AccessID=
|
66
|
+
string: AccessID=53423389f2059b97ab86faa87ccf5ebc&AccessPass=7e0c971d8b63bd6924f88caec7dd056a&JobCd=AUTH&Amount=1000&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
67
67
|
headers:
|
68
68
|
Accept:
|
69
69
|
- ! '*/*'
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: OK
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Fri, 01 Mar 2013 02:59:38 GMT
|
79
79
|
Connection:
|
80
80
|
- close
|
81
81
|
Content-Type:
|
@@ -84,7 +84,7 @@ http_interactions:
|
|
84
84
|
- chunked
|
85
85
|
body:
|
86
86
|
encoding: US-ASCII
|
87
|
-
string: AccessID=
|
87
|
+
string: AccessID=53423389f2059b97ab86faa87ccf5ebc&AccessPass=7e0c971d8b63bd6924f88caec7dd056a&Forward=2a99662&Approve=6416264&TranID=1303011158111111111111198884&TranDate=20130301115939
|
88
88
|
http_version:
|
89
|
-
recorded_at:
|
89
|
+
recorded_at: Fri, 01 Mar 2013 02:59:39 GMT
|
90
90
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_got_error_if_missing_options.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/SearchTradeMulti.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: OrderID=null&PayType=null&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:39 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -28,5 +28,5 @@ http_interactions:
|
|
28
28
|
encoding: US-ASCII
|
29
29
|
string: ErrCode=M01|M01|M01&ErrInfo=M01051005|M01051011|M01004002
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:39 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_gets_data_about_a_transaction.yml
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/EntryTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: OrderID=
|
8
|
+
string: OrderID=1362106772&JobCd=AUTH&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:32 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -26,7 +26,7 @@ http_interactions:
|
|
26
26
|
- chunked
|
27
27
|
body:
|
28
28
|
encoding: US-ASCII
|
29
|
-
string: AccessID=
|
30
|
-
http_version:
|
31
|
-
recorded_at:
|
29
|
+
string: AccessID=3618be802c7ac572414274731e50cb6c&AccessPass=4099664bd4b110800e09805539d1d7b5
|
30
|
+
http_version:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:33 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_got_error_if_missing_options.yml
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/EntryTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: OrderID=null&JobCd=null&Amount=null&ShopID
|
8
|
+
string: OrderID=null&JobCd=null&Amount=null&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:33 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -27,6 +27,6 @@ http_interactions:
|
|
27
27
|
body:
|
28
28
|
encoding: US-ASCII
|
29
29
|
string: ErrCode=E01|E01&ErrInfo=E01050002|E01060006
|
30
|
-
http_version:
|
31
|
-
recorded_at:
|
30
|
+
http_version:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:33 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_gets_data_about_a_transaction.yml
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/EntryTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: OrderID=1362106991&JobCd=AUTH&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 03:03:11 GMT
|
21
21
|
Connection:
|
22
22
|
- close
|
23
23
|
Content-Type:
|
@@ -26,7 +26,36 @@ http_interactions:
|
|
26
26
|
- chunked
|
27
27
|
body:
|
28
28
|
encoding: US-ASCII
|
29
|
-
string:
|
30
|
-
http_version:
|
31
|
-
recorded_at:
|
29
|
+
string: AccessID=e65385d62b5e5e9be64d2c8cecdb24f2&AccessPass=a79882df473a228fd2a00051e72642be
|
30
|
+
http_version:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 03:03:11 GMT
|
32
|
+
- request:
|
33
|
+
method: post
|
34
|
+
uri: https://<HOST>/payment/ExecTran.idPass
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: AccessID=e65385d62b5e5e9be64d2c8cecdb24f2&AccessPass=a79882df473a228fd2a00051e72642be&OrderID=1362106991&Method=1&PayTimes=1&CardNo=4111111111111111&Expire=1405&HttpAccept=null&HttpUserAgent=null&DeviceCategory=0&ClientField1=client_field1&ClientField2=null&ClientField3=null&ClientFieldFlag=1&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
38
|
+
headers:
|
39
|
+
Accept:
|
40
|
+
- ! '*/*'
|
41
|
+
User-Agent:
|
42
|
+
- Ruby
|
43
|
+
response:
|
44
|
+
status:
|
45
|
+
code: 200
|
46
|
+
message: OK
|
47
|
+
headers:
|
48
|
+
Date:
|
49
|
+
- Fri, 01 Mar 2013 03:03:12 GMT
|
50
|
+
Connection:
|
51
|
+
- close
|
52
|
+
Content-Type:
|
53
|
+
- text/plain;charset=Windows-31J
|
54
|
+
Transfer-Encoding:
|
55
|
+
- chunked
|
56
|
+
body:
|
57
|
+
encoding: US-ASCII
|
58
|
+
string: ACS=0&OrderID=1362106991&Forward=2a99662&Method=1&PayTimes=&Approve=6416276&TranID=1303011202111111111111198895&TranDate=20130301120312&CheckString=2d8fa5d3a220a34161d18a87e9cbfd75&ClientField1=client_field1&ClientField2=null&ClientField3=null
|
59
|
+
http_version:
|
60
|
+
recorded_at: Fri, 01 Mar 2013 03:03:12 GMT
|
32
61
|
recorded_with: VCR 2.4.0
|