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,11 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class EpsilonGatewayTest < MiniTest::Test
|
4
|
+
def test_set_proxy_address_and_port
|
5
|
+
ActiveMerchant::Billing::EpsilonGateway.proxy_address = 'http://myproxy.dev'
|
6
|
+
ActiveMerchant::Billing::EpsilonGateway.proxy_port = 1234
|
7
|
+
gateway = ActiveMerchant::Billing::EpsilonGateway.new
|
8
|
+
assert_equal(gateway.proxy_address, 'http://myproxy.dev')
|
9
|
+
assert_equal(gateway.proxy_port, 1234)
|
10
|
+
end
|
11
|
+
end
|
data/wercker.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
box: wercker/rvm
|
2
|
+
build:
|
3
|
+
steps:
|
4
|
+
- rvm-use:
|
5
|
+
version: 2.1.6
|
6
|
+
|
7
|
+
- bundle-install
|
8
|
+
|
9
|
+
- script:
|
10
|
+
name: rake test:unit
|
11
|
+
code: bundle exec rake test:remote
|
12
|
+
|
13
|
+
after-steps:
|
14
|
+
- 2get/ikachan-notify@0.0.2:
|
15
|
+
url: $IRC_URL
|
16
|
+
channel: "#ruby"
|
17
|
+
passed-message: "%02[CI]%0f $WERCKER_APPLICATION_NAME: $WERCKER_BUILD_URL build of $WERCKER_GIT_BRANCH %02%0301,03PASSED%0f"
|
18
|
+
failed-message: "%02[CI]%0f $WERCKER_APPLICATION_NAME: $WERCKER_BUILD_URL build of $WERCKER_GIT_BRANCH %02%0301,04FAILED%0f"
|
metadata
ADDED
@@ -0,0 +1,248 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: active_merchant-epsilon
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kenichi TAKAHASHI
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activemerchant
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.48.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.48.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry-byebug
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: tapp
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webmock
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: vcr
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: Epsilon integration for ActiveMerchant.
|
140
|
+
email:
|
141
|
+
- kenichi.taka@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".env.sample"
|
147
|
+
- ".gitignore"
|
148
|
+
- CHANGELOG.md
|
149
|
+
- Gemfile
|
150
|
+
- LICENSE.txt
|
151
|
+
- README.md
|
152
|
+
- Rakefile
|
153
|
+
- active_merchant-epsilon.gemspec
|
154
|
+
- lib/active_merchant/billing/convenience_store.rb
|
155
|
+
- lib/active_merchant/billing/gateways/epsilon.rb
|
156
|
+
- lib/active_merchant/billing/gateways/epsilon/epsilon_base.rb
|
157
|
+
- lib/active_merchant/billing/gateways/epsilon/epsilon_mission_code.rb
|
158
|
+
- lib/active_merchant/billing/gateways/epslion_convenience_store.rb
|
159
|
+
- lib/active_merchant/epsilon.rb
|
160
|
+
- lib/active_merchant/epsilon/version.rb
|
161
|
+
- test/fixtures/vcr_cassettes/autheticate_three_d_secure_card_successful.yml
|
162
|
+
- test/fixtures/vcr_cassettes/cancel_recurring_fail.yml
|
163
|
+
- test/fixtures/vcr_cassettes/cancel_recurring_successful.yml
|
164
|
+
- test/fixtures/vcr_cassettes/change_recurring_amount_failure.yml
|
165
|
+
- test/fixtures/vcr_cassettes/change_recurring_amount_successful.yml
|
166
|
+
- test/fixtures/vcr_cassettes/convenience_store_purchase_fail.yml
|
167
|
+
- test/fixtures/vcr_cassettes/convenience_store_purchase_successful.yml
|
168
|
+
- test/fixtures/vcr_cassettes/find_user_failure.yml
|
169
|
+
- test/fixtures/vcr_cassettes/find_user_success.yml
|
170
|
+
- test/fixtures/vcr_cassettes/installment_purchase_successful.yml
|
171
|
+
- test/fixtures/vcr_cassettes/purchase_fail.yml
|
172
|
+
- test/fixtures/vcr_cassettes/purchase_successful.yml
|
173
|
+
- test/fixtures/vcr_cassettes/purchase_with_three_d_secure_card_successful.yml
|
174
|
+
- test/fixtures/vcr_cassettes/purchase_with_verification_value.yml
|
175
|
+
- test/fixtures/vcr_cassettes/recurring_fail.yml
|
176
|
+
- test/fixtures/vcr_cassettes/recurring_successful.yml
|
177
|
+
- test/fixtures/vcr_cassettes/registered_purchase_fail.yml
|
178
|
+
- test/fixtures/vcr_cassettes/registered_purchase_successful.yml
|
179
|
+
- test/fixtures/vcr_cassettes/registered_recurring_fail.yml
|
180
|
+
- test/fixtures/vcr_cassettes/registered_recurring_successful.yml
|
181
|
+
- test/fixtures/vcr_cassettes/revolving_purchase_successful.yml
|
182
|
+
- test/fixtures/vcr_cassettes/terminate_recurring_fail.yml
|
183
|
+
- test/fixtures/vcr_cassettes/terminate_recurring_successful.yml
|
184
|
+
- test/fixtures/vcr_cassettes/verify_fail.yml
|
185
|
+
- test/fixtures/vcr_cassettes/verify_successful.yml
|
186
|
+
- test/fixtures/vcr_cassettes/void_fail.yml
|
187
|
+
- test/fixtures/vcr_cassettes/void_successful.yml
|
188
|
+
- test/remote/gateways/remote_epsilon_convenience_store_test.rb
|
189
|
+
- test/remote/gateways/remote_epsilon_test.rb
|
190
|
+
- test/test_helper.rb
|
191
|
+
- test/unit/gateways/epsilon_test.rb
|
192
|
+
- wercker.yml
|
193
|
+
homepage: http://github.com/pepabo/active_merchant-epsilon
|
194
|
+
licenses:
|
195
|
+
- MIT
|
196
|
+
metadata: {}
|
197
|
+
post_install_message:
|
198
|
+
rdoc_options: []
|
199
|
+
require_paths:
|
200
|
+
- lib
|
201
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
requirements: []
|
212
|
+
rubyforge_project:
|
213
|
+
rubygems_version: 2.4.8
|
214
|
+
signing_key:
|
215
|
+
specification_version: 4
|
216
|
+
summary: Epsilon integration for ActiveMerchant.
|
217
|
+
test_files:
|
218
|
+
- test/fixtures/vcr_cassettes/autheticate_three_d_secure_card_successful.yml
|
219
|
+
- test/fixtures/vcr_cassettes/cancel_recurring_fail.yml
|
220
|
+
- test/fixtures/vcr_cassettes/cancel_recurring_successful.yml
|
221
|
+
- test/fixtures/vcr_cassettes/change_recurring_amount_failure.yml
|
222
|
+
- test/fixtures/vcr_cassettes/change_recurring_amount_successful.yml
|
223
|
+
- test/fixtures/vcr_cassettes/convenience_store_purchase_fail.yml
|
224
|
+
- test/fixtures/vcr_cassettes/convenience_store_purchase_successful.yml
|
225
|
+
- test/fixtures/vcr_cassettes/find_user_failure.yml
|
226
|
+
- test/fixtures/vcr_cassettes/find_user_success.yml
|
227
|
+
- test/fixtures/vcr_cassettes/installment_purchase_successful.yml
|
228
|
+
- test/fixtures/vcr_cassettes/purchase_fail.yml
|
229
|
+
- test/fixtures/vcr_cassettes/purchase_successful.yml
|
230
|
+
- test/fixtures/vcr_cassettes/purchase_with_three_d_secure_card_successful.yml
|
231
|
+
- test/fixtures/vcr_cassettes/purchase_with_verification_value.yml
|
232
|
+
- test/fixtures/vcr_cassettes/recurring_fail.yml
|
233
|
+
- test/fixtures/vcr_cassettes/recurring_successful.yml
|
234
|
+
- test/fixtures/vcr_cassettes/registered_purchase_fail.yml
|
235
|
+
- test/fixtures/vcr_cassettes/registered_purchase_successful.yml
|
236
|
+
- test/fixtures/vcr_cassettes/registered_recurring_fail.yml
|
237
|
+
- test/fixtures/vcr_cassettes/registered_recurring_successful.yml
|
238
|
+
- test/fixtures/vcr_cassettes/revolving_purchase_successful.yml
|
239
|
+
- test/fixtures/vcr_cassettes/terminate_recurring_fail.yml
|
240
|
+
- test/fixtures/vcr_cassettes/terminate_recurring_successful.yml
|
241
|
+
- test/fixtures/vcr_cassettes/verify_fail.yml
|
242
|
+
- test/fixtures/vcr_cassettes/verify_successful.yml
|
243
|
+
- test/fixtures/vcr_cassettes/void_fail.yml
|
244
|
+
- test/fixtures/vcr_cassettes/void_successful.yml
|
245
|
+
- test/remote/gateways/remote_epsilon_convenience_store_test.rb
|
246
|
+
- test/remote/gateways/remote_epsilon_test.rb
|
247
|
+
- test/test_helper.rb
|
248
|
+
- test/unit/gateways/epsilon_test.rb
|