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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b6d8a514b77fdac7f5ba836ad2587393253f2fedda6aac170ccc65817fa575d
4
- data.tar.gz: 72244c3fafb9a11b2a2a5c1593474aefa54c3fc4c4c37856c5288c5d67cbeb61
3
+ metadata.gz: 796c4a13b9c534627b19fe2d6a4dd453fffc8e7f1f6c7fc52711d6c69d08d068
4
+ data.tar.gz: cdc35c37a721d174bcb4baaae539b7181d431c4542ea38787f6809af8dcc65c7
5
5
  SHA512:
6
- metadata.gz: 22b4a2fa3d606dec5edba7243c9ae21a6f410a0ddb6f9fe7a0ec2e02e2ed6e1a2e1cb209f32e27e1677cfd1589b8f071033bcd30dff85cad09c1d23bbca293df
7
- data.tar.gz: 9d812be0b13afde388c1c57d007af0e6786e890be09c5a290ea42db26b5482571af2fd1e92d737df979da2ca7501994e3de53e671a887628739df0d2ae675416
6
+ metadata.gz: 825d06fe57d653ab355a609b7bc911da06064331c0cfde751bbad17d8712faf9b1a84cc1e3d5edced495c5e27d6120034c878b7f6cab4d29e554f625fb3cddb0
7
+ data.tar.gz: ae1f17b24a9605299929af24ce84fe78531f372dacfd7e721252bd2dc7d68e853e65e361e747334d3192fe3558fbbd5e5def50e9293305783b991bdd02a391ef
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.8
4
3
  - 2.4.5
5
4
  - 2.5.3
6
5
 
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
- ### GMO Payment After Delivery
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::EpsilonGmoAfterGateway.contract_code = 'YOUR_CONTRACT_CODE'
311
+ ActiveMerchant::Billing::EpsilonLinkPaymentGateway.contract_code = 'YOUR_CONTRACT_CODE'
309
312
 
310
- gateway = ActiveMerchant::Billing::EpsilonGmoAfterGateway.new
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 EpsilonGmoAfterGateway < EpsilonBaseGateway
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: '00000-0000-00000-00010-00000-00000-00000',
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/epsilon_gmo_after'
13
+ require_relative 'billing/gateways/epsilon_link_payment'
14
14
  require_relative 'billing/gateways/response_parser'
@@ -1,5 +1,5 @@
1
1
  module ActiveMerchant
2
2
  module Epsilon
3
- VERSION = "0.9.3"
3
+ VERSION = "0.9.4"
4
4
  end
5
5
  end
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.3
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-03-23 00:00:00.000000000 Z
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.0.3
247
+ rubygems_version: 3.1.2
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: Epsilon integration for ActiveMerchant.