active_merchant-epsilon 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.sample +3 -0
- data/.gitignore +17 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +256 -0
- data/Rakefile +19 -0
- data/active_merchant-epsilon.gemspec +31 -0
- data/lib/active_merchant/billing/convenience_store.rb +55 -0
- data/lib/active_merchant/billing/gateways/epsilon.rb +194 -0
- data/lib/active_merchant/billing/gateways/epsilon/epsilon_base.rb +132 -0
- data/lib/active_merchant/billing/gateways/epsilon/epsilon_mission_code.rb +30 -0
- data/lib/active_merchant/billing/gateways/epslion_convenience_store.rb +27 -0
- data/lib/active_merchant/epsilon.rb +9 -0
- data/lib/active_merchant/epsilon/version.rb +5 -0
- data/test/fixtures/vcr_cassettes/autheticate_three_d_secure_card_successful.yml +46 -0
- data/test/fixtures/vcr_cassettes/cancel_recurring_fail.yml +82 -0
- data/test/fixtures/vcr_cassettes/cancel_recurring_successful.yml +83 -0
- data/test/fixtures/vcr_cassettes/change_recurring_amount_failure.yml +85 -0
- data/test/fixtures/vcr_cassettes/change_recurring_amount_successful.yml +85 -0
- data/test/fixtures/vcr_cassettes/convenience_store_purchase_fail.yml +39 -0
- data/test/fixtures/vcr_cassettes/convenience_store_purchase_successful.yml +50 -0
- data/test/fixtures/vcr_cassettes/find_user_failure.yml +44 -0
- data/test/fixtures/vcr_cassettes/find_user_success.yml +44 -0
- data/test/fixtures/vcr_cassettes/installment_purchase_successful.yml +46 -0
- data/test/fixtures/vcr_cassettes/purchase_fail.yml +45 -0
- data/test/fixtures/vcr_cassettes/purchase_successful.yml +46 -0
- data/test/fixtures/vcr_cassettes/purchase_with_three_d_secure_card_successful.yml +45 -0
- data/test/fixtures/vcr_cassettes/purchase_with_verification_value.yml +46 -0
- data/test/fixtures/vcr_cassettes/recurring_fail.yml +45 -0
- data/test/fixtures/vcr_cassettes/recurring_successful.yml +46 -0
- data/test/fixtures/vcr_cassettes/registered_purchase_fail.yml +45 -0
- data/test/fixtures/vcr_cassettes/registered_purchase_successful.yml +46 -0
- data/test/fixtures/vcr_cassettes/registered_recurring_fail.yml +45 -0
- data/test/fixtures/vcr_cassettes/registered_recurring_successful.yml +46 -0
- data/test/fixtures/vcr_cassettes/revolving_purchase_successful.yml +46 -0
- data/test/fixtures/vcr_cassettes/terminate_recurring_fail.yml +96 -0
- data/test/fixtures/vcr_cassettes/terminate_recurring_successful.yml +82 -0
- data/test/fixtures/vcr_cassettes/verify_fail.yml +45 -0
- data/test/fixtures/vcr_cassettes/verify_successful.yml +85 -0
- data/test/fixtures/vcr_cassettes/void_fail.yml +42 -0
- data/test/fixtures/vcr_cassettes/void_successful.yml +85 -0
- data/test/remote/gateways/remote_epsilon_convenience_store_test.rb +27 -0
- data/test/remote/gateways/remote_epsilon_test.rb +249 -0
- data/test/test_helper.rb +162 -0
- data/test/unit/gateways/epsilon_test.rb +11 -0
- data/wercker.yml +18 -0
- metadata +248 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/direct_card_payment.cgi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1413355545&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O45994951&st_code=10000-0000-0000&mission_code=2&item_price=10000&process_code=1&card_number=4242424242424242&expire_y=2015&expire_m=10&user_agent=ActiveMerchant%3A%3AEpsilon-0.0.1
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Wed, 15 Oct 2014 06:45:46 GMT
|
25
|
+
Server:
|
26
|
+
- Apache
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Content-Type:
|
30
|
+
- text/xml; charset=CP932
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="x-sjis-cp932"?>
|
35
|
+
<Epsilon_result>
|
36
|
+
<result acsurl="" />
|
37
|
+
<result err_code="" />
|
38
|
+
<result err_detail="" />
|
39
|
+
<result kari_flag="0" />
|
40
|
+
<result pareq="" />
|
41
|
+
<result result="1" />
|
42
|
+
<result trans_code="494188" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 15 Oct 2014 06:45:47 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/receive_order3.cgi
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1413355545&item_code=ITEM001wrong&xml=1&process_code=8
|
52
|
+
headers:
|
53
|
+
Content-Type:
|
54
|
+
- application/x-www-form-urlencoded
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- "*/*"
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Wed, 15 Oct 2014 06:45:47 GMT
|
68
|
+
Server:
|
69
|
+
- Apache
|
70
|
+
Transfer-Encoding:
|
71
|
+
- chunked
|
72
|
+
Content-Type:
|
73
|
+
- text/xml
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: "<?xml version=\"1.0\" encoding=\"x-sjis-cp932\" ?>\r\n <Epsilon_result>\r\n
|
77
|
+
\ <result result=\"0\" />\r\n <result err_code=\"605\" />\r\n <result
|
78
|
+
err_detail=\"%8C%8E%8E%9F%89%DB%8B%E0%83f%81%5B%83%5E%8C%9F%8D%F5%83G%83%89%81%5B\"
|
79
|
+
/>\r\n <result memo1=\"\" />\r\n <result memo2=\"\" />\r\n </Epsilon_result>"
|
80
|
+
http_version:
|
81
|
+
recorded_at: Wed, 15 Oct 2014 06:45:47 GMT
|
82
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/direct_card_payment.cgi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1413355547&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O47958839&st_code=10000-0000-0000&mission_code=2&item_price=10000&process_code=1&card_number=4242424242424242&expire_y=2015&expire_m=10&user_agent=ActiveMerchant%3A%3AEpsilon-0.0.1
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Wed, 15 Oct 2014 06:45:48 GMT
|
25
|
+
Server:
|
26
|
+
- Apache
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Content-Type:
|
30
|
+
- text/xml; charset=CP932
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="x-sjis-cp932"?>
|
35
|
+
<Epsilon_result>
|
36
|
+
<result acsurl="" />
|
37
|
+
<result err_code="" />
|
38
|
+
<result err_detail="" />
|
39
|
+
<result kari_flag="0" />
|
40
|
+
<result pareq="" />
|
41
|
+
<result result="1" />
|
42
|
+
<result trans_code="494189" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 15 Oct 2014 06:45:49 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/receive_order3.cgi
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1413355547&item_code=ITEM001&xml=1&process_code=8
|
52
|
+
headers:
|
53
|
+
Content-Type:
|
54
|
+
- application/x-www-form-urlencoded
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- "*/*"
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Wed, 15 Oct 2014 06:45:49 GMT
|
68
|
+
Server:
|
69
|
+
- Apache
|
70
|
+
Transfer-Encoding:
|
71
|
+
- chunked
|
72
|
+
Content-Type:
|
73
|
+
- text/xml
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: "<?xml version=\"1.0\" encoding=\"x-sjis-cp932\" ?>\r\n <Epsilon_result>\r\n
|
77
|
+
\ <result result=\"1\" />\r\n <result user_id=\"U1413355547\" />\r\n
|
78
|
+
\ <result item_code=\"ITEM001\" />\r\n <result item_name=\"Greate%20Product\"
|
79
|
+
/>\r\n <result item_price=\"10000\" />\r\n <result mission_code=\"2\"
|
80
|
+
/>\r\n <result memo1=\"\" />\r\n <result memo2=\"\" />\r\n </Epsilon_result>\r\n"
|
81
|
+
http_version:
|
82
|
+
recorded_at: Wed, 15 Oct 2014 06:45:50 GMT
|
83
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/direct_card_payment.cgi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1434444587&user_name=YAMADA+Taro&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O47908625&st_code=10000-0000-0000&mission_code=2&item_price=10000&process_code=1&card_number=4242424242424242&expire_y=2016&expire_m=10&card_st_code=&pay_time=&tds_check_code=&user_agent=ActiveMerchant%3A%3AEpsilon-0.5.0
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Tue, 16 Jun 2015 08:49:47 GMT
|
25
|
+
Server:
|
26
|
+
- Apache
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Content-Type:
|
30
|
+
- text/xml; charset=CP932
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="x-sjis-cp932"?>
|
35
|
+
<Epsilon_result>
|
36
|
+
<result acsurl="" />
|
37
|
+
<result err_code="" />
|
38
|
+
<result err_detail="" />
|
39
|
+
<result kari_flag="0" />
|
40
|
+
<result pareq="" />
|
41
|
+
<result result="1" />
|
42
|
+
<result trans_code="536795" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 16 Jun 2015 08:49:49 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/change_amount_payment.cgi
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: contract_code=[CONTRACT_CODE]&mission_code=2&user_id=U1434444587&item_code=invalid+code&new_item_price=5000
|
52
|
+
headers:
|
53
|
+
Content-Type:
|
54
|
+
- application/x-www-form-urlencoded
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- "*/*"
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Tue, 16 Jun 2015 08:49:49 GMT
|
68
|
+
Server:
|
69
|
+
- Apache
|
70
|
+
Transfer-Encoding:
|
71
|
+
- chunked
|
72
|
+
Content-Type:
|
73
|
+
- text/xml; charset=CP932
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: |-
|
77
|
+
<?xml version="1.0" encoding="x-sjis-cp932"?>
|
78
|
+
<Epsilon_result>
|
79
|
+
<result err_code="810" />
|
80
|
+
<result err_detail="%91%CE%8F%DB%8E%E6%88%F8%82%CD%82%A0%82%E8%82%DC%82%B9%82%F1" />
|
81
|
+
<result result="9" />
|
82
|
+
</Epsilon_result>
|
83
|
+
http_version:
|
84
|
+
recorded_at: Tue, 16 Jun 2015 08:49:49 GMT
|
85
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/direct_card_payment.cgi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1434444378&user_name=YAMADA+Taro&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O18782208&st_code=10000-0000-0000&mission_code=2&item_price=10000&process_code=1&card_number=4242424242424242&expire_y=2016&expire_m=10&card_st_code=&pay_time=&tds_check_code=&user_agent=ActiveMerchant%3A%3AEpsilon-0.5.0
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Tue, 16 Jun 2015 08:46:18 GMT
|
25
|
+
Server:
|
26
|
+
- Apache
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Content-Type:
|
30
|
+
- text/xml; charset=CP932
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="x-sjis-cp932"?>
|
35
|
+
<Epsilon_result>
|
36
|
+
<result acsurl="" />
|
37
|
+
<result err_code="" />
|
38
|
+
<result err_detail="" />
|
39
|
+
<result kari_flag="0" />
|
40
|
+
<result pareq="" />
|
41
|
+
<result result="1" />
|
42
|
+
<result trans_code="536794" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 16 Jun 2015 08:46:20 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/change_amount_payment.cgi
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: contract_code=[CONTRACT_CODE]&mission_code=2&user_id=U1434444378&item_code=ITEM001&new_item_price=5000
|
52
|
+
headers:
|
53
|
+
Content-Type:
|
54
|
+
- application/x-www-form-urlencoded
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- "*/*"
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Tue, 16 Jun 2015 08:46:20 GMT
|
68
|
+
Server:
|
69
|
+
- Apache
|
70
|
+
Transfer-Encoding:
|
71
|
+
- chunked
|
72
|
+
Content-Type:
|
73
|
+
- text/xml; charset=CP932
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: |-
|
77
|
+
<?xml version="1.0" encoding="x-sjis-cp932"?>
|
78
|
+
<Epsilon_result>
|
79
|
+
<result err_code="" />
|
80
|
+
<result err_detail="" />
|
81
|
+
<result result="1" />
|
82
|
+
</Epsilon_result>
|
83
|
+
http_version:
|
84
|
+
recorded_at: Tue, 16 Jun 2015 08:46:20 GMT
|
85
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/receive_order3.cgi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1421367428&user_name=%E3%83%A4%E3%83%9E%E3%83%80+%E3%82%BF%E3%83%AD%E3%82%A6&user_mail_add=yamada-taro%40example.com&user_tel=0312345678901&item_code=ITEM001&item_name=Greate+Product&order_number=O8805285&st_code=00100-0000-0000&mission_code=1&item_price=10000&process_code=1&xml=1&conveni_code=31&user_agent=ActiveMerchant%3A%3AEpsilon-0.0.1
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 16 Jan 2015 00:17:09 GMT
|
25
|
+
Server:
|
26
|
+
- Apache
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Content-Type:
|
30
|
+
- text/xml
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n <Epsilon_result>\r\n
|
34
|
+
\ <result result=\"0\" />\r\n <result err_code=\"601\" />\r\n <result
|
35
|
+
err_detail=\"%93d%98b%94%D4%8D%86%82%F0%90%B3%82%B5%82%AD%93%FC%97%CD%82%B5%82%C4%82%AD%82%BE%82%B3%82%A2\"
|
36
|
+
/>\r\n <result memo1=\"\" />\r\n <result memo2=\"\" />\r\n </Epsilon_result>\r\n"
|
37
|
+
http_version:
|
38
|
+
recorded_at: Fri, 16 Jan 2015 00:17:09 GMT
|
39
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/receive_order3.cgi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: contract_code=[CONTRACT_CODE]&user_id=U1421364630&user_name=%E3%83%A4%E3%83%9E%E3%83%80+%E3%82%BF%E3%83%AD%E3%82%A6&user_mail_add=yamada-taro%40example.com&user_tel=0312345678&item_code=ITEM001&item_name=Greate+Product&order_number=O3042483&st_code=00100-0000-0000&mission_code=1&item_price=10000&process_code=1&xml=1&conveni_code=31&user_agent=ActiveMerchant%3A%3AEpsilon-0.0.1
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Thu, 15 Jan 2015 23:30:30 GMT
|
25
|
+
Server:
|
26
|
+
- Apache
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Content-Type:
|
30
|
+
- text/xml
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\r\n<Epsilon_result>\r\n
|
34
|
+
\ <result result=\"1\" />\r\n <result trans_code=\"504052\" />\r\n <result
|
35
|
+
order_number=\"O3042483\" />\r\n <result state=\"0\" />\r\n <result user_id=\"U1421364630\"
|
36
|
+
/>\r\n <result user_name=\"%83%84%83%7D%83_%20%83%5E%83%8D%83E\" />\r\n <result
|
37
|
+
process_code=\"1\" />\r\n <result last_update=\"2015-01-16%2008%3A30%3A31\"
|
38
|
+
/>\r\n <result item_price=\"10000\" />\r\n <result memo1=\"\" />\r\n <result
|
39
|
+
memo2=\"\" />\r\n <result mission_code=\"1\" />\r\n <result st_code=\"00100-0000-00000-00000-00000-00000-00000\"
|
40
|
+
/>\r\n <result contract_code=\"[CONTRACT_CODE]\" />\r\n <result item_name=\"Greate%20Product\"
|
41
|
+
/>\r\n <result payment_code=\"3\" />\r\n <result user_mail_add=\"yamada-taro%40example.com\"
|
42
|
+
/>\r\n <result item_code=\"ITEM001\" />\r\n <result conveni_code=\"31\"
|
43
|
+
/>\r\n <result receipt_no=\"0005180\" />\r\n <result kigyou_code=\"\" />\r\n
|
44
|
+
\ <result haraikomi_url=\"http%3A%2F%2Fbeta.epsilon.jp%2Fsample%2Fecon_sample.pdf\"
|
45
|
+
/>\r\n <result paid=\"0\" />\r\n <result receipt_date=\"2015-01-16%2008%3A30%3A31\"
|
46
|
+
/>\r\n <result conveni_limit=\"2015-01-26\" />\r\n <result conveni_time=\"\"
|
47
|
+
/>\r\n</Epsilon_result>\r\n"
|
48
|
+
http_version:
|
49
|
+
recorded_at: Thu, 15 Jan 2015 23:30:31 GMT
|
50
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://beta.epsilon.jp/cgi-bin/order/get_user_info.cgi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: contract_code=[CONTRACT_CODE]&user_id=
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Mon, 02 Feb 2015 10:18:43 GMT
|
25
|
+
Server:
|
26
|
+
- Apache
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Content-Type:
|
30
|
+
- text/xml; charset=CP932
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: |-
|
34
|
+
<?xml version="1.0" encoding="x-sjis-cp932"?>
|
35
|
+
<Epsilon_result>
|
36
|
+
<result card_brand="" />
|
37
|
+
<result card_number_mask="" />
|
38
|
+
<result err_code="801" />
|
39
|
+
<result err_detail="%83C%83v%83V%83%8D%83%93%82%C9%93o%98%5E%82%CC%93d%98b%94%D4%8D%86%82%CC%89%BA4%8C%85%28%89%BA%8EO%8C%85%82%CC%8F%EA%8D%87%82%CD%89%BA%8EO%8C%85%29%82%F0%93%FC%97%CD%82%A8%8A%E8%82%A2%82%B5%82%DC%82%B7%81B" />
|
40
|
+
<result result="2" />
|
41
|
+
</Epsilon_result>
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 02 Feb 2015 10:18:44 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|