active_merchant-epsilon 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/active_merchant/billing/gateways/epslion_convenience_store.rb +2 -1
- data/lib/active_merchant/billing/gateways/response_parser.rb +5 -0
- data/lib/active_merchant/epsilon/version.rb +1 -1
- data/test/fixtures/vcr_cassettes/convenience_store_purchase_successful.yml +1 -1
- data/test/remote/gateways/remote_epsilon_convenience_store_test.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9a429be038922b16d3c28570bf244fbb543edce
|
|
4
|
+
data.tar.gz: 84cf1331ca5881453b824a101619725128bf288c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1c8eb54e48ade480101c7ff77dc0a7dc7dca11f9b513a38d238c9e733681b5832f9d1c13241666b064c30ebad6b28b598a98b3213e638fa55268f45f86a60dd
|
|
7
|
+
data.tar.gz: ca9c47b799024e41ef7970a4ac931d8110226a527fb8cad6e656b3011b883cb5e16058ba2bd2aa287becca68aae5108373885833e54703569d75f149f5b3ffe6
|
|
@@ -69,6 +69,10 @@ module ActiveMerchant #:nodoc:
|
|
|
69
69
|
uri_decode(@xml.xpath(ResponseXpath::CONVENIENCE_STORE_PAYMENT_SLIP_URL).to_s)
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
def company_code
|
|
73
|
+
@xml.xpath(@xml.xpath(ResponseXpath::COMPANY_CODE).to_s)
|
|
74
|
+
end
|
|
75
|
+
|
|
72
76
|
def uri_decode(string)
|
|
73
77
|
URI.decode(string).encode(Encoding::UTF_8, Encoding::CP932)
|
|
74
78
|
end
|
|
@@ -86,6 +90,7 @@ module ActiveMerchant #:nodoc:
|
|
|
86
90
|
RECEIPT_DATE = '//Epsilon_result/result[@receipt_date][1]/@receipt_date'
|
|
87
91
|
CONVENIENCE_STORE_LIMIT_DATE = '//Epsilon_result/result[@conveni_limit][1]/@conveni_limit'
|
|
88
92
|
CONVENIENCE_STORE_PAYMENT_SLIP_URL = '//Epsilon_result/result[@haraikomi_url][1]/@haraikomi_url'
|
|
93
|
+
COMPANY_CODE = '//Epsilon_result/result[@kigyou_code][1]/@kigyou_code'
|
|
89
94
|
end
|
|
90
95
|
|
|
91
96
|
module ResultCode
|
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
|
40
40
|
/>\r\n <result contract_code=\"[CONTRACT_CODE]\" />\r\n <result item_name=\"Greate%20Product\"
|
|
41
41
|
/>\r\n <result payment_code=\"3\" />\r\n <result user_mail_add=\"yamada-taro%40example.com\"
|
|
42
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
|
|
43
|
+
/>\r\n <result receipt_no=\"0005180\" />\r\n <result kigyou_code=\"10020\" />\r\n
|
|
44
44
|
\ <result haraikomi_url=\"http%3A%2F%2Fbeta.epsilon.jp%2Fsample%2Fecon_sample.pdf\"
|
|
45
45
|
/>\r\n <result paid=\"0\" />\r\n <result receipt_date=\"2015-01-16%2008%3A30%3A31\"
|
|
46
46
|
/>\r\n <result conveni_limit=\"2015-01-26\" />\r\n <result conveni_time=\"\"
|
|
@@ -16,6 +16,7 @@ class RemoteEpsilonConvenienceStoreGatewayTest < MiniTest::Test
|
|
|
16
16
|
assert_match /\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}/, response.params['receipt_date']
|
|
17
17
|
assert_match /\d{4}\-\d{2}\-\d{2}/, response.params['convenience_store_limit_date']
|
|
18
18
|
assert_match %r!\Ahttp://.+!, response.params['convenience_store_payment_slip_url']
|
|
19
|
+
assert_match /\d{5}/, response.params['company_code']
|
|
19
20
|
end
|
|
20
21
|
end
|
|
21
22
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_merchant-epsilon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kenichi TAKAHASHI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-04-
|
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemerchant
|