active_merchant-epsilon 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +4 -0
- data/README.md +7 -3
- data/lib/active_merchant/billing/gateways/{epsilon_gmo_after.rb → epsilon_link_payment.rb} +2 -2
- data/lib/active_merchant/epsilon.rb +1 -1
- data/lib/active_merchant/epsilon/version.rb +1 -1
- data/test/test_helper.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 796c4a13b9c534627b19fe2d6a4dd453fffc8e7f1f6c7fc52711d6c69d08d068
|
4
|
+
data.tar.gz: cdc35c37a721d174bcb4baaae539b7181d431c4542ea38787f6809af8dcc65c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 825d06fe57d653ab355a609b7bc911da06064331c0cfde751bbad17d8712faf9b1a84cc1e3d5edced495c5e27d6120034c878b7f6cab4d29e554f625fb3cddb0
|
7
|
+
data.tar.gz: ae1f17b24a9605299929af24ce84fe78531f372dacfd7e721252bd2dc7d68e853e65e361e747334d3192fe3558fbbd5e5def50e9293305783b991bdd02a391ef
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
### 0.9.4
|
4
|
+
|
5
|
+
* [Support Epsilon Link Payment instead of GMO Payment After Delivery](https://github.com/pepabo/active_merchant-epsilon/pull/110)
|
6
|
+
|
3
7
|
### 0.9.3
|
4
8
|
|
5
9
|
* [Fix API version for GMO Payment After Delivery](https://github.com/pepabo/active_merchant-epsilon/pull/108)
|
data/README.md
CHANGED
@@ -302,12 +302,15 @@ else
|
|
302
302
|
end
|
303
303
|
```
|
304
304
|
|
305
|
-
###
|
305
|
+
### Epsilon Link Payment
|
306
|
+
|
307
|
+
EpsilosLinkPaymentGateway is available in all link payments.
|
308
|
+
For example, GMO Payment After Delivery.
|
306
309
|
|
307
310
|
```ruby
|
308
|
-
ActiveMerchant::Billing::
|
311
|
+
ActiveMerchant::Billing::EpsilonLinkPaymentGateway.contract_code = 'YOUR_CONTRACT_CODE'
|
309
312
|
|
310
|
-
gateway = ActiveMerchant::Billing::
|
313
|
+
gateway = ActiveMerchant::Billing::EpsilonLinkPaymentGateway.new
|
311
314
|
|
312
315
|
amount = 10000
|
313
316
|
|
@@ -319,6 +322,7 @@ purchase_detail = {
|
|
319
322
|
item_code: 'ITEM001',
|
320
323
|
item_name: 'Greate Product',
|
321
324
|
order_number: 'UNIQUE ORDER NUMBER',
|
325
|
+
st_code: 'SETTLEMENT_CODE',
|
322
326
|
consignee_postal: '1500002',
|
323
327
|
consignee_name: '山田 太郎',
|
324
328
|
consignee_address: '東京都渋谷区1-1-1',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module ActiveMerchant #:nodoc:
|
2
2
|
module Billing #:nodoc:
|
3
|
-
class
|
3
|
+
class EpsilonLinkPaymentGateway < EpsilonBaseGateway
|
4
4
|
|
5
5
|
RESPONSE_KEYS = DEFAULT_RESPONSE_KEYS + [
|
6
6
|
:redirect,
|
@@ -15,7 +15,7 @@ module ActiveMerchant #:nodoc:
|
|
15
15
|
item_code: detail[:item_code],
|
16
16
|
item_name: detail[:item_name],
|
17
17
|
order_number: detail[:order_number],
|
18
|
-
st_code:
|
18
|
+
st_code: detail[:st_code],
|
19
19
|
mission_code: EpsilonMissionCode::PURCHASE,
|
20
20
|
item_price: amount,
|
21
21
|
process_code: EpsilonProcessCode::FIRST,
|
@@ -10,5 +10,5 @@ require_relative 'billing/gateways/epsilon'
|
|
10
10
|
require_relative 'billing/gateways/epsilon_convenience_store'
|
11
11
|
require_relative 'billing/gateways/epsilon_gmo_id'
|
12
12
|
require_relative 'billing/gateways/epsilon_virtual_account'
|
13
|
-
require_relative 'billing/gateways/
|
13
|
+
require_relative 'billing/gateways/epsilon_link_payment'
|
14
14
|
require_relative 'billing/gateways/response_parser'
|
data/test/test_helper.rb
CHANGED
@@ -216,6 +216,7 @@ module SamplePaymentMethods
|
|
216
216
|
item_code: 'ITEM001',
|
217
217
|
item_name: 'Greate Product',
|
218
218
|
order_number: "O#{now.sec}#{now.usec}",
|
219
|
+
st_code: '00000-0000-00000-00010-00000-00000-00000',
|
219
220
|
memo1: 'memo1',
|
220
221
|
memo2: 'memo2',
|
221
222
|
consignee_postal: '1000001',
|
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.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenichi TAKAHASHI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -172,8 +172,8 @@ files:
|
|
172
172
|
- lib/active_merchant/billing/gateways/epsilon/epsilon_mission_code.rb
|
173
173
|
- lib/active_merchant/billing/gateways/epsilon/epsilon_process_code.rb
|
174
174
|
- lib/active_merchant/billing/gateways/epsilon_convenience_store.rb
|
175
|
-
- lib/active_merchant/billing/gateways/epsilon_gmo_after.rb
|
176
175
|
- lib/active_merchant/billing/gateways/epsilon_gmo_id.rb
|
176
|
+
- lib/active_merchant/billing/gateways/epsilon_link_payment.rb
|
177
177
|
- lib/active_merchant/billing/gateways/epsilon_virtual_account.rb
|
178
178
|
- lib/active_merchant/billing/gateways/response_parser.rb
|
179
179
|
- lib/active_merchant/epsilon.rb
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.
|
247
|
+
rubygems_version: 3.1.2
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: Epsilon integration for ActiveMerchant.
|