active_merchant-epsilon 0.5.8 → 0.5.9

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
  SHA1:
3
- metadata.gz: 75138bb18726ef3140954a16bb725c7171b7a05c
4
- data.tar.gz: 386ca212536ebd8d1838977127ab2a9948dafbfb
3
+ metadata.gz: 9f1ff8fd217ea4f0a2571d475bc16d6275cff58a
4
+ data.tar.gz: a277b5256584333f5ae80627f9e47dcbfe4f940e
5
5
  SHA512:
6
- metadata.gz: 0d55045bfdd9012f0ecff2f1bab04137f54af0e95d6e851e54f9c7ccba2b23e815401f2357185831bcee30a02f2f7aa6aac7abc349ccef504bf9e4d6667546a8
7
- data.tar.gz: d6b5677122f08f140dd1f981760caa6f7ec7a9f4179471550f170ea8d4e5f748c685a83366d473a2e776378dde13d38e38182296e36a155046fd040c26446b45
6
+ metadata.gz: 4f0a6a972043fb3b8ade693f12d7621c1c47e542c9591d9c1b6b9702e050f30c6cf58f4920db10f7d5b121f4d46ae65ef7cabf0e5479dbf82524cf576af7c7e6
7
+ data.tar.gz: c169e5bc408723ea685c37167778f01a8515314288306f0ff55e90607c95120d4710f83f3e3a811c63c18ff92564225b35df4b024aca205702ba85ceb505ac23
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ mkmf.log
15
15
 
16
16
  .env
17
17
  .ruby-version
18
+ vendor/bundle
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # ActiveMerchant::Epsilon
2
2
  [![Gem](https://img.shields.io/gem/v/active_merchant-epsilon.svg?style=flat-square)](https://rubygems.org/gems/active_merchant-epsilon)
3
3
  [![Build Status](https://travis-ci.org/pepabo/active_merchant-epsilon.svg?branch=master)](https://travis-ci.org/pepabo/active_merchant-epsilon)
4
- [![wercker status](https://app.wercker.com/status/43c6648e20f325c8c0a560c36e89781c/s/master "wercker status")](https://app.wercker.com/project/bykey/43c6648e20f325c8c0a560c36e89781c)
5
4
 
6
5
  [Epsilon](http://www.epsilon.jp/) integration for ActiveMerchant.
7
6
 
@@ -65,6 +64,8 @@ purchase_detail = {
65
64
  item_code: 'ITEM001',
66
65
  item_name: 'Greate Product',
67
66
  order_number: 'UNIQUE ORDER NUMBER',
67
+ memo1: 'memo1',
68
+ memo2: 'memo2',
68
69
  }
69
70
 
70
71
  if credit_card.validate.empty?
@@ -103,6 +104,8 @@ purchase_detail = {
103
104
  item_name: 'Greate Product',
104
105
  order_number: 'UNIQUE ORDER NUMBER',
105
106
  three_d_secure_check_code: 1,
107
+ memo1: 'memo1',
108
+ memo2: 'memo2',
106
109
  }
107
110
 
108
111
  if credit_card.validate.empty?
@@ -149,6 +152,8 @@ purchase_detail = {
149
152
  order_number: 'UNIQUE ORDER NUMBER',
150
153
  credit_type: ActiveMerchant::Billing::EpsilonGateway::CreditType::INSTALLMENT,
151
154
  payment_time: 3, # 3, 5, 6, 10, 12, 15, 18, 20, 24
155
+ memo1: 'memo1',
156
+ memo2: 'memo2',
152
157
  }
153
158
 
154
159
  # (snip)
@@ -167,6 +172,8 @@ purchase_detail = {
167
172
  item_name: 'Greate Product',
168
173
  order_number: 'UNIQUE ORDER NUMBER',
169
174
  credit_type: ActiveMerchant::Billing::EpsilonGateway::CreditType::REVOLVING,
175
+ memo1: 'memo1',
176
+ memo2: 'memo2',
170
177
  }
171
178
 
172
179
  # (snip)
@@ -192,6 +199,8 @@ purchase_detail = {
192
199
  item_code: 'ITEM001',
193
200
  item_name: 'Greate Product',
194
201
  order_number: 'UNIQUE ORDER NUMBER',
202
+ memo1: 'memo1',
203
+ memo2: 'memo2',
195
204
  }
196
205
 
197
206
  if credit_card.validate.empty?
@@ -43,6 +43,8 @@ module ActiveMerchant #:nodoc:
43
43
  mission_code: EpsilonMissionCode::PURCHASE,
44
44
  item_price: amount,
45
45
  process_code: 2,
46
+ memo1: detail[:memo1],
47
+ memo2: detail[:memo2],
46
48
  xml: 1,
47
49
  }
48
50
 
@@ -72,6 +74,8 @@ module ActiveMerchant #:nodoc:
72
74
  mission_code: detail[:mission_code],
73
75
  item_price: amount,
74
76
  process_code: 2,
77
+ memo1: detail[:memo1],
78
+ memo2: detail[:memo2],
75
79
  xml: 1,
76
80
  }
77
81
 
@@ -171,6 +175,8 @@ module ActiveMerchant #:nodoc:
171
175
  mission_code: detail[:mission_code],
172
176
  item_price: amount,
173
177
  process_code: 1,
178
+ memo1: detail[:memo1],
179
+ memo2: detail[:memo2],
174
180
  card_number: payment_method.number,
175
181
  expire_y: payment_method.year,
176
182
  expire_m: payment_method.month,
@@ -21,6 +21,8 @@ module ActiveMerchant #:nodoc:
21
21
  mission_code: EpsilonMissionCode::PURCHASE,
22
22
  item_price: amount,
23
23
  process_code: 1,
24
+ memo1: detail[:memo1],
25
+ memo2: detail[:memo2],
24
26
  xml: 1,
25
27
  conveni_code: payment_method.code,
26
28
  user_tel: payment_method.phone_number,
@@ -1,5 +1,5 @@
1
1
  module ActiveMerchant
2
2
  module Epsilon
3
- VERSION = "0.5.8"
3
+ VERSION = "0.5.9"
4
4
  end
5
5
  end
data/test/test_helper.rb CHANGED
@@ -79,7 +79,9 @@ module SamplePaymentMethods
79
79
  user_email: 'yamada-taro@example.com',
80
80
  item_code: 'ITEM001',
81
81
  item_name: 'Greate Product',
82
- order_number: "O#{now.sec}#{now.usec}"
82
+ order_number: "O#{now.sec}#{now.usec}",
83
+ memo1: 'memo1',
84
+ memo2: 'memo2',
83
85
  }
84
86
  end
85
87
 
@@ -94,6 +96,8 @@ module SamplePaymentMethods
94
96
  order_number: "O#{now.sec}#{now.usec}",
95
97
  credit_type: ActiveMerchant::Billing::EpsilonGateway::CreditType::INSTALLMENT,
96
98
  payment_time: 3,
99
+ memo1: 'memo1',
100
+ memo2: 'memo2',
97
101
  }
98
102
  end
99
103
 
@@ -107,6 +111,8 @@ module SamplePaymentMethods
107
111
  item_name: 'Greate Product',
108
112
  order_number: "O#{now.sec}#{now.usec}",
109
113
  credit_type: ActiveMerchant::Billing::EpsilonGateway::CreditType::REVOLVING,
114
+ memo1: 'memo1',
115
+ memo2: 'memo2',
110
116
  }
111
117
  end
112
118
 
@@ -118,7 +124,9 @@ module SamplePaymentMethods
118
124
  item_code: 'ITEM001',
119
125
  item_name: 'Greate Product',
120
126
  order_number: "O#{Time.now.to_i}",
121
- mission_code: '6'
127
+ mission_code: '6',
128
+ memo1: 'memo1',
129
+ memo2: 'memo2',
122
130
  }
123
131
  end
124
132
 
@@ -20,6 +20,8 @@ class EpsilonGatewayTest < MiniTest::Test
20
20
  user_name: '山田太郎',
21
21
  item_name: 'すごい商品',
22
22
  order_number: '12345678',
23
+ memo1: '予備1',
24
+ memo2: '予備2',
23
25
  }
24
26
  gateway.expects(:ssl_post).with(
25
27
  instance_of(String),
@@ -27,6 +29,8 @@ class EpsilonGatewayTest < MiniTest::Test
27
29
  includes('user_name=%BB%B3%C5%C4%C2%C0%CF%BA'),
28
30
  includes('item_name=%A4%B9%A4%B4%A4%A4%BE%A6%C9%CA'),
29
31
  includes('order_number=12345678'),
32
+ includes('memo1=%CD%BD%C8%F71'),
33
+ includes('memo2=%CD%BD%C8%F72'),
30
34
  )
31
35
  ).returns(response_body)
32
36
  gateway.purchase(100, valid_credit_card, detail)
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.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenichi TAKAHASHI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.6.6
229
+ rubygems_version: 2.5.2
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Epsilon integration for ActiveMerchant.