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,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=U1416470209
|
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="VISA" />
|
37
|
+
<result card_number_mask="4%2A%2A%2A-%2A%2A%2A%2A-%2A%2A%2A%2A-4242" />
|
38
|
+
<result err_code="" />
|
39
|
+
<result err_detail="" />
|
40
|
+
<result result="1" />
|
41
|
+
</Epsilon_result>
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 02 Feb 2015 10:18:44 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
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=U1429255813&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O13607710&mission_code=1&item_price=10000&process_code=1&tds_check_code=&user_agent=ActiveMerchant%3A%3AEpsilon-0.4.0&st_code=10000-0000-0000&card_number=4242424242424242&expire_y=2016&expire_m=10&card_st_code=61&pay_time=3&security_code=000&security_check=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, 17 Apr 2015 07:30:14 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="524520" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 17 Apr 2015 07:30:15 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,45 @@
|
|
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=U1426597046&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O26729705&mission_code=1&item_price=10000&process_code=1&user_agent=ActiveMerchant%3A%3AEpsilon-0.1.0&st_code=10000-0000-0000&card_number=0000000000000000&expire_y=2016&expire_m=10
|
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, 17 Mar 2015 12:57:27 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="601" />
|
38
|
+
<result err_detail="%82%B2%97%98%97p%82%CC%93X%95%DC%82%C5%82%CD%97%98%97p%82%C5%82%AB%82%C8%82%A2%83J%81%5B%83h%94%D4%8D%86%82%C5%82%B7%81B%8D%C4%93x%93%FC%97%CD%82%A8%8A%E8%82%A2%82%A2%82%BD%82%B5%82%DC%82%B7%81B" />
|
39
|
+
<result pareq="" />
|
40
|
+
<result result="0" />
|
41
|
+
<result trans_code="520646" />
|
42
|
+
</Epsilon_result>
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 17 Mar 2015 12:57:27 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
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=U1430473122&user_name=YAMADA+Taro&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O42920767&st_code=10000-0000-0000&mission_code=1&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
|
+
- Fri, 01 May 2015 09:38: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 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="525987" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 01 May 2015 09:38:44 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,45 @@
|
|
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=U1427867795&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O35443475&mission_code=1&item_price=10000&process_code=1&tds_check_code=1&user_agent=ActiveMerchant%3A%3AEpsilon-0.3.0&st_code=10000-0000-0000&card_number=4123451111111117&expire_y=2023&expire_m=12&security_code=012&security_check=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, 01 Apr 2015 05:56:35 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="https%3A%2F%2Ftestacsds.gmopg.jp%2FThreeDSim%2FACS" />
|
37
|
+
<result err_code="" />
|
38
|
+
<result err_detail="" />
|
39
|
+
<result pareq="eJxVUttOwzAM%2FZWq7yy3ppfJDSoUBA8bE4wPCKnZimg72o51f0%2FSdQwiRfGxLR%2F7OHA9VJ%2FeN7Zd2dSpz2bU97A2TVHWm9R%2FXd9fxf61gvW2Rcxf0OxbVLDArtMb9Moi9Vf6Gb9YwKM4jKIkpFHEOEuoEFIKEQgeRJwJX8Eqs3kKJiZliWYcyBnakq3Z6rpXoM3XzeNSBYyLQAKZIFTYPuZqdIZRnNApfHJDrStUFMj4gmn2dd8eFRUhkDOAffuptn2%2FmxNyOBxmm50%2BVlj33cw0FQHiwkAufaz2zupsuaEs1OIjG5brjC7yu2GZv%2FJFnh3cfcqzFIjLgEL3qDhlkgaUeVTOZTh3DYx%2B0JXrQzFqj53qhGDnSLJ%2Fob8usHq3dh1HJRKr1i8CHHZNbZt3M%2F%2FaUGBnlGcZ3QvkMsHtg9PV9FYqWbwzHovwTSAKlHHyLo1GGrzFXDi1xyRXv7SaccH4SOAAEFeGTIsk0yew1r%2FP8QMmJryw" />
|
40
|
+
<result result="5" />
|
41
|
+
<result trans_code="522778" />
|
42
|
+
</Epsilon_result>
|
43
|
+
http_version:
|
44
|
+
recorded_at: Wed, 01 Apr 2015 05:56:36 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
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=U1426597047&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O27638708&mission_code=1&item_price=10000&process_code=1&user_agent=ActiveMerchant%3A%3AEpsilon-0.1.0&st_code=10000-0000-0000&card_number=4242424242424242&expire_y=2016&expire_m=10
|
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, 17 Mar 2015 12:57:27 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="520647" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 17 Mar 2015 12:57:28 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,45 @@
|
|
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=U1413355541&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O41712779&st_code=10000-0000-0000&mission_code=2&item_price=10000&process_code=1&card_number=0000000000000000&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:41 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="601" />
|
38
|
+
<result err_detail="%82%B2%97%98%97p%82%CC%93X%95%DC%82%C5%82%CD%97%98%97p%82%C5%82%AB%82%C8%82%A2%83J%81%5B%83h%94%D4%8D%86%82%C5%82%B7%81B%8D%C4%93x%93%FC%97%CD%82%A8%8A%E8%82%A2%82%A2%82%BD%82%B5%82%DC%82%B7%81B" />
|
39
|
+
<result pareq="" />
|
40
|
+
<result result="0" />
|
41
|
+
<result trans_code="494185" />
|
42
|
+
</Epsilon_result>
|
43
|
+
http_version:
|
44
|
+
recorded_at: Wed, 15 Oct 2014 06:45:41 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
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=U1413355554&user_name=TARO+YAMADA&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O5485000&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:54 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="494193" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 15 Oct 2014 06:45:55 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,45 @@
|
|
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=&user_name=YAMADA+TARO&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O1423812667&st_code=10000-0000-0000&mission_code=1&item_price=10000&process_code=2&xml=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, 13 Feb 2015 07:31:07 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="502" />
|
38
|
+
<result err_detail="%92%8D%95%B6%8F%EE%95%F1%82%F0%8E%F3%82%AF%95t%82%AF%82%E9%82%B1%82%C6%82%AA%82%C5%82%AB%82%DC%82%B9%82%F1%82%C5%82%B5%82%BD" />
|
39
|
+
<result pareq="" />
|
40
|
+
<result result="9" />
|
41
|
+
<result trans_code="" />
|
42
|
+
</Epsilon_result>
|
43
|
+
http_version:
|
44
|
+
recorded_at: Fri, 13 Feb 2015 07:31:08 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
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=U1416470209&user_name=YAMADA+TARO&user_mail_add=yamada-taro%40example.com&item_code=ITEM001&item_name=Greate+Product&order_number=O1423812668&st_code=10000-0000-0000&mission_code=1&item_price=10000&process_code=2&xml=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, 13 Feb 2015 07:31:08 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="510024" />
|
43
|
+
</Epsilon_result>
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 13 Feb 2015 07:31:09 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|