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
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/ExecTran.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: AccessID=null&AccessPass=null&OrderID=null&Method=null&PayTimes=null&CardNo=null&Expire=null&HttpAccept=null&HttpUserAgent=null&DeviceCategory=0&ClientField1=null&ClientField2=null&ClientField3=null&ClientFieldFlag=0&ShopID
|
8
|
+
string: AccessID=null&AccessPass=null&OrderID=null&Method=null&PayTimes=null&CardNo=null&Expire=null&HttpAccept=null&HttpUserAgent=null&DeviceCategory=0&ClientField1=null&ClientField2=null&ClientField3=null&ClientFieldFlag=0&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|E01|E01|E01|E01&ErrInfo=E01090008|E01100008|E01110002|E01170011|E01170006|E01180006
|
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
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/SearchTrade.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: OrderID=
|
8
|
+
string: OrderID=1362106772&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:39 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: OrderID=
|
29
|
+
string: OrderID=1362106772&Status=UNPROCESSED&ProcessDate=20130301115932&JobCd=AUTH&AccessID=3618be802c7ac572414274731e50cb6c&AccessPass=4099664bd4b110800e09805539d1d7b5&ItemCode=0000990&Amount=100&Tax=0&SiteID=&MemberID=&CardNo=&Expire=&Method=&PayTimes=&Forward=&TranID=&Approve=&ClientField1=&ClientField2=&ClientField3=
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:40 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_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:40 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:40 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_gets_data_about_order.yml
CHANGED
@@ -2,15 +2,13 @@
|
|
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
|
-
string: OrderID=
|
8
|
+
string: OrderID=1362106772&PayType=0&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
9
|
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
10
|
Accept:
|
13
|
-
- '*/*'
|
11
|
+
- ! '*/*'
|
14
12
|
User-Agent:
|
15
13
|
- Ruby
|
16
14
|
response:
|
@@ -19,7 +17,7 @@ http_interactions:
|
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:40 GMT
|
23
21
|
Connection:
|
24
22
|
- close
|
25
23
|
Content-Type:
|
@@ -27,8 +25,8 @@ http_interactions:
|
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
27
|
body:
|
30
|
-
encoding:
|
31
|
-
string: Status=
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: Status=UNPROCESSED&ProcessDate=20130301115932&JobCd=AUTH&AccessID=3618be802c7ac572414274731e50cb6c&AccessPass=4099664bd4b110800e09805539d1d7b5&ItemCode=0000990&Amount=100&Tax=0&SiteID=&MemberID=&CardNo=&Expire=&Method=&PayTimes=&Forward=&TranID=&Approve=&ClientField1=&ClientField2=&ClientField3=&PayType=0&CvsCode=&CvsConfNo=&CvsReceiptNo=&EdyReceiptNo=&EdyOrderNo=&SuicaOrderNo=&SuicaReceiptNo=&CustID=&BkCode=&ConfNo=&EncryptReceiptNo=&PaymentTerm=&WebMoneyManagementNo=&WebMoneySettleCode=&AuPayInfoNo=&AuPayMethod=&AuCancelAmount=&AuCancelTax=&DocomoSettlementCode=&DocomoCancelAmount=&DocomoCancelTax=&SbTrackingId=&SbCancelAmount=&SbCancelTax=&Currency=JPN
|
32
30
|
http_version:
|
33
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:40 GMT
|
34
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_got_error_if_missing_options.yml
CHANGED
@@ -2,15 +2,13 @@
|
|
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>
|
9
9
|
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
10
|
Accept:
|
13
|
-
- '*/*'
|
11
|
+
- ! '*/*'
|
14
12
|
User-Agent:
|
15
13
|
- Ruby
|
16
14
|
response:
|
@@ -19,7 +17,7 @@ http_interactions:
|
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:40 GMT
|
23
21
|
Connection:
|
24
22
|
- close
|
25
23
|
Content-Type:
|
@@ -27,8 +25,8 @@ http_interactions:
|
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
27
|
body:
|
30
|
-
encoding:
|
28
|
+
encoding: US-ASCII
|
31
29
|
string: ErrCode=M01|M01|M01&ErrInfo=M01051005|M01051011|M01004002
|
32
30
|
http_version:
|
33
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:40 GMT
|
34
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_card_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/TradedCard.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: OrderID=null&MemberID=null&SeqMode=0&DefaultFlag=0&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>&SiteID=<SITE_ID>&SitePass=<SITE_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:32 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&ErrInfo=E01110002
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:32 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
@@ -2,15 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/DeleteCard.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: MemberID=
|
8
|
+
string: MemberID=1362106780&CardSeq=0&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
9
9
|
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
10
|
Accept:
|
13
|
-
- '*/*'
|
11
|
+
- ! '*/*'
|
14
12
|
User-Agent:
|
15
13
|
- Ruby
|
16
14
|
response:
|
@@ -19,7 +17,7 @@ http_interactions:
|
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:42 GMT
|
23
21
|
Connection:
|
24
22
|
- close
|
25
23
|
Content-Type:
|
@@ -27,8 +25,8 @@ http_interactions:
|
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
27
|
body:
|
30
|
-
encoding:
|
28
|
+
encoding: US-ASCII
|
31
29
|
string: CardSeq=0
|
32
30
|
http_version:
|
33
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:42 GMT
|
34
32
|
recorded_with: VCR 2.4.0
|
@@ -2,15 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/SaveMember.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: MemberID=
|
8
|
+
string: MemberID=1362106781&MemberName=John+Smith&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
9
9
|
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
10
|
Accept:
|
13
|
-
- '*/*'
|
11
|
+
- ! '*/*'
|
14
12
|
User-Agent:
|
15
13
|
- Ruby
|
16
14
|
response:
|
@@ -19,16 +17,45 @@ http_interactions:
|
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:41 GMT
|
23
21
|
Connection:
|
24
22
|
- close
|
25
23
|
Content-Type:
|
26
24
|
- text/plain;charset=Windows-31J
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: MemberID=1362106781
|
30
|
+
http_version:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:41 GMT
|
32
|
+
- request:
|
33
|
+
method: post
|
34
|
+
uri: https://<HOST>/payment/DeleteMember.idPass
|
29
35
|
body:
|
30
36
|
encoding: UTF-8
|
31
|
-
string: MemberID=
|
37
|
+
string: MemberID=1362106781&SiteID=<SITE_ID>&SitePass=<SITE_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 02:59:41 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: MemberID=1362106781
|
32
59
|
http_version:
|
33
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 01 Mar 2013 02:59:41 GMT
|
34
61
|
recorded_with: VCR 2.4.0
|
@@ -2,15 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/SaveCard.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: MemberID=
|
8
|
+
string: MemberID=1362106780&CardNo=4111111111111111&Expire=1405&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
9
9
|
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
10
|
Accept:
|
13
|
-
- '*/*'
|
11
|
+
- ! '*/*'
|
14
12
|
User-Agent:
|
15
13
|
- Ruby
|
16
14
|
response:
|
@@ -19,7 +17,7 @@ http_interactions:
|
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:42 GMT
|
23
21
|
Connection:
|
24
22
|
- close
|
25
23
|
Content-Type:
|
@@ -27,8 +25,8 @@ http_interactions:
|
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
27
|
body:
|
30
|
-
encoding:
|
28
|
+
encoding: US-ASCII
|
31
29
|
string: CardSeq=0&CardNo=*************111&Forward=2a99662
|
32
30
|
http_version:
|
33
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:42 GMT
|
34
32
|
recorded_with: VCR 2.4.0
|
data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_member_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/SaveMember.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: MemberID=
|
8
|
+
string: MemberID=1362106780&MemberName=John+Smith&SiteID=<SITE_ID>&SitePass=<SITE_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:40 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: MemberID=
|
30
|
-
http_version:
|
31
|
-
recorded_at:
|
29
|
+
string: MemberID=1362106780
|
30
|
+
http_version:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:40 GMT
|
32
32
|
recorded_with: VCR 2.4.0
|
@@ -2,15 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/SaveCard.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: MemberID=
|
8
|
+
string: MemberID=1362106780&CardNo=4111111111111111&Expire=1405&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
9
9
|
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
10
|
Accept:
|
13
|
-
- '*/*'
|
11
|
+
- ! '*/*'
|
14
12
|
User-Agent:
|
15
13
|
- Ruby
|
16
14
|
response:
|
@@ -19,7 +17,7 @@ http_interactions:
|
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 02:59:42 GMT
|
23
21
|
Connection:
|
24
22
|
- close
|
25
23
|
Content-Type:
|
@@ -27,21 +25,19 @@ http_interactions:
|
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
27
|
body:
|
30
|
-
encoding:
|
28
|
+
encoding: US-ASCII
|
31
29
|
string: CardSeq=0&CardNo=*************111&Forward=2a99662
|
32
30
|
http_version:
|
33
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 02:59:43 GMT
|
34
32
|
- request:
|
35
33
|
method: post
|
36
|
-
uri: https
|
34
|
+
uri: https://<HOST>/payment/SearchCard.idPass
|
37
35
|
body:
|
38
36
|
encoding: UTF-8
|
39
|
-
string: MemberID=
|
37
|
+
string: MemberID=1362106780&CardSeq=0&SeqMode=0&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
40
38
|
headers:
|
41
|
-
Accept-Encoding:
|
42
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
43
39
|
Accept:
|
44
|
-
- '*/*'
|
40
|
+
- ! '*/*'
|
45
41
|
User-Agent:
|
46
42
|
- Ruby
|
47
43
|
response:
|
@@ -50,7 +46,7 @@ http_interactions:
|
|
50
46
|
message: OK
|
51
47
|
headers:
|
52
48
|
Date:
|
53
|
-
-
|
49
|
+
- Fri, 01 Mar 2013 02:59:43 GMT
|
54
50
|
Connection:
|
55
51
|
- close
|
56
52
|
Content-Type:
|
@@ -58,8 +54,8 @@ http_interactions:
|
|
58
54
|
Transfer-Encoding:
|
59
55
|
- chunked
|
60
56
|
body:
|
61
|
-
encoding:
|
57
|
+
encoding: US-ASCII
|
62
58
|
string: CardSeq=0&DefaultFlag=0&CardName=&CardNo=*************111&Expire=1405&HolderName=&DeleteFlag=0
|
63
59
|
http_version:
|
64
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 01 Mar 2013 02:59:43 GMT
|
65
61
|
recorded_with: VCR 2.4.0
|
@@ -2,15 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://<HOST>/payment/SaveMember.idPass
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: MemberID=
|
8
|
+
string: MemberID=1362106992&MemberName=John+Smith&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
9
9
|
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
10
|
Accept:
|
13
|
-
- '*/*'
|
11
|
+
- ! '*/*'
|
14
12
|
User-Agent:
|
15
13
|
- Ruby
|
16
14
|
response:
|
@@ -19,7 +17,7 @@ http_interactions:
|
|
19
17
|
message: OK
|
20
18
|
headers:
|
21
19
|
Date:
|
22
|
-
-
|
20
|
+
- Fri, 01 Mar 2013 03:03:12 GMT
|
23
21
|
Connection:
|
24
22
|
- close
|
25
23
|
Content-Type:
|
@@ -27,21 +25,19 @@ http_interactions:
|
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
27
|
body:
|
30
|
-
encoding:
|
31
|
-
string: MemberID=
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: MemberID=1362106992
|
32
30
|
http_version:
|
33
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 01 Mar 2013 03:03:12 GMT
|
34
32
|
- request:
|
35
33
|
method: post
|
36
|
-
uri: https
|
34
|
+
uri: https://<HOST>/payment/SearchMember.idPass
|
37
35
|
body:
|
38
36
|
encoding: UTF-8
|
39
|
-
string: MemberID=
|
37
|
+
string: MemberID=1362106992&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
40
38
|
headers:
|
41
|
-
Accept-Encoding:
|
42
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
43
39
|
Accept:
|
44
|
-
- '*/*'
|
40
|
+
- ! '*/*'
|
45
41
|
User-Agent:
|
46
42
|
- Ruby
|
47
43
|
response:
|
@@ -50,7 +46,7 @@ http_interactions:
|
|
50
46
|
message: OK
|
51
47
|
headers:
|
52
48
|
Date:
|
53
|
-
-
|
49
|
+
- Fri, 01 Mar 2013 03:03:12 GMT
|
54
50
|
Connection:
|
55
51
|
- close
|
56
52
|
Content-Type:
|
@@ -58,8 +54,8 @@ http_interactions:
|
|
58
54
|
Transfer-Encoding:
|
59
55
|
- chunked
|
60
56
|
body:
|
61
|
-
encoding:
|
62
|
-
string: MemberID=
|
57
|
+
encoding: US-ASCII
|
58
|
+
string: MemberID=1362106992&MemberName=John Smith&DeleteFlag=0
|
63
59
|
http_version:
|
64
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 01 Mar 2013 03:03:13 GMT
|
65
61
|
recorded_with: VCR 2.4.0
|