killbill-payment-test 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +98 -115
- data/.gitignore +0 -33
- data/.travis.yml +0 -41
- data/Gemfile +0 -4
- data/Gemfile.head +0 -5
- data/Gemfile.lock +0 -149
- data/Jarfile +0 -12
- data/Jarfile.lock +0 -66
- data/README.md +0 -81
- data/Rakefile +0 -17
- data/VERSION +0 -1
- data/config.ru +0 -4
- data/killbill-payment-test.gemspec +0 -52
- data/killbill.properties +0 -3
- data/pom.xml +0 -38
- data/release.sh +0 -61
- data/spec/payment_test/base_plugin_spec.rb +0 -75
- data/spec/spec_helper.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 456208cb4cab8e9a007ee061ca4b99520df5a768
|
4
|
+
data.tar.gz: c225f53b071c11f75f042d4aeaf99ebb1015e97f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3ebb9640c9e8eb4e4617bcf2a4efcca840f1e759b62d90e94c865a49e9651498264f8211c86e4be2570e30d04d583c024e0a8eae83eda952cb54cdac807174b
|
7
|
+
data.tar.gz: 8e1ca9a41b33a56de40187e3fbd494d02acb1da015fcca90b2f6cb7e2b98af1b209b05d26879af225bf61a7b97f2aec644544241568bfab4afc90f49ba6369f0
|
metadata
CHANGED
@@ -1,286 +1,273 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-payment-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: killbill
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '8.0'
|
20
14
|
requirement: !ruby/object:Gem::Requirement
|
21
15
|
requirements:
|
22
|
-
- - ~>
|
16
|
+
- - "~>"
|
23
17
|
- !ruby/object:Gem::Version
|
24
18
|
version: '8.0'
|
19
|
+
name: killbill
|
25
20
|
prerelease: false
|
26
21
|
type: :runtime
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: sinatra
|
29
22
|
version_requirements: !ruby/object:Gem::Requirement
|
30
23
|
requirements:
|
31
|
-
- - ~>
|
24
|
+
- - "~>"
|
32
25
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
26
|
+
version: '8.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
34
28
|
requirement: !ruby/object:Gem::Requirement
|
35
29
|
requirements:
|
36
|
-
- - ~>
|
30
|
+
- - "~>"
|
37
31
|
- !ruby/object:Gem::Version
|
38
32
|
version: 1.3.4
|
33
|
+
name: sinatra
|
39
34
|
prerelease: false
|
40
35
|
type: :runtime
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: thread_safe
|
43
36
|
version_requirements: !ruby/object:Gem::Requirement
|
44
37
|
requirements:
|
45
|
-
- - ~>
|
38
|
+
- - "~>"
|
46
39
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
40
|
+
version: 1.3.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
48
42
|
requirement: !ruby/object:Gem::Requirement
|
49
43
|
requirements:
|
50
|
-
- - ~>
|
44
|
+
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
46
|
version: 0.3.4
|
47
|
+
name: thread_safe
|
53
48
|
prerelease: false
|
54
49
|
type: :runtime
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: activerecord
|
57
50
|
version_requirements: !ruby/object:Gem::Requirement
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: 0.3.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
62
56
|
requirement: !ruby/object:Gem::Requirement
|
63
57
|
requirements:
|
64
|
-
- - ~>
|
58
|
+
- - "~>"
|
65
59
|
- !ruby/object:Gem::Version
|
66
60
|
version: 4.1.0
|
61
|
+
name: activerecord
|
67
62
|
prerelease: false
|
68
63
|
type: :runtime
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: activerecord-bogacs
|
71
64
|
version_requirements: !ruby/object:Gem::Requirement
|
72
65
|
requirements:
|
73
|
-
- - ~>
|
66
|
+
- - "~>"
|
74
67
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
68
|
+
version: 4.1.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
76
70
|
requirement: !ruby/object:Gem::Requirement
|
77
71
|
requirements:
|
78
|
-
- - ~>
|
72
|
+
- - "~>"
|
79
73
|
- !ruby/object:Gem::Version
|
80
74
|
version: '0.3'
|
75
|
+
name: activerecord-bogacs
|
81
76
|
prerelease: false
|
82
77
|
type: :runtime
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: activerecord-jdbc-adapter
|
85
78
|
version_requirements: !ruby/object:Gem::Requirement
|
86
79
|
requirements:
|
87
|
-
- - ~>
|
80
|
+
- - "~>"
|
88
81
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
82
|
+
version: '0.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
90
84
|
requirement: !ruby/object:Gem::Requirement
|
91
85
|
requirements:
|
92
|
-
- - ~>
|
86
|
+
- - "~>"
|
93
87
|
- !ruby/object:Gem::Version
|
94
88
|
version: '1.3'
|
89
|
+
name: activerecord-jdbc-adapter
|
95
90
|
prerelease: false
|
96
91
|
type: :runtime
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: jruby-openssl
|
99
92
|
version_requirements: !ruby/object:Gem::Requirement
|
100
93
|
requirements:
|
101
|
-
- - ~>
|
94
|
+
- - "~>"
|
102
95
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
96
|
+
version: '1.3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
104
98
|
requirement: !ruby/object:Gem::Requirement
|
105
99
|
requirements:
|
106
|
-
- - ~>
|
100
|
+
- - "~>"
|
107
101
|
- !ruby/object:Gem::Version
|
108
102
|
version: 0.9.6
|
103
|
+
name: jruby-openssl
|
109
104
|
prerelease: false
|
110
105
|
type: :runtime
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: actionpack
|
113
106
|
version_requirements: !ruby/object:Gem::Requirement
|
114
107
|
requirements:
|
115
|
-
- - ~>
|
108
|
+
- - "~>"
|
116
109
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
110
|
+
version: 0.9.6
|
111
|
+
- !ruby/object:Gem::Dependency
|
118
112
|
requirement: !ruby/object:Gem::Requirement
|
119
113
|
requirements:
|
120
|
-
- - ~>
|
114
|
+
- - "~>"
|
121
115
|
- !ruby/object:Gem::Version
|
122
116
|
version: 4.1.0
|
117
|
+
name: actionpack
|
123
118
|
prerelease: false
|
124
119
|
type: :runtime
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: actionview
|
127
120
|
version_requirements: !ruby/object:Gem::Requirement
|
128
121
|
requirements:
|
129
|
-
- - ~>
|
122
|
+
- - "~>"
|
130
123
|
- !ruby/object:Gem::Version
|
131
124
|
version: 4.1.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
132
126
|
requirement: !ruby/object:Gem::Requirement
|
133
127
|
requirements:
|
134
|
-
- - ~>
|
128
|
+
- - "~>"
|
135
129
|
- !ruby/object:Gem::Version
|
136
130
|
version: 4.1.0
|
131
|
+
name: actionview
|
137
132
|
prerelease: false
|
138
133
|
type: :runtime
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: activemerchant
|
141
134
|
version_requirements: !ruby/object:Gem::Requirement
|
142
135
|
requirements:
|
143
|
-
- - ~>
|
136
|
+
- - "~>"
|
144
137
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
138
|
+
version: 4.1.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
146
140
|
requirement: !ruby/object:Gem::Requirement
|
147
141
|
requirements:
|
148
|
-
- - ~>
|
142
|
+
- - "~>"
|
149
143
|
- !ruby/object:Gem::Version
|
150
144
|
version: 1.53.0
|
145
|
+
name: activemerchant
|
151
146
|
prerelease: false
|
152
147
|
type: :runtime
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: offsite_payments
|
155
148
|
version_requirements: !ruby/object:Gem::Requirement
|
156
149
|
requirements:
|
157
|
-
- - ~>
|
150
|
+
- - "~>"
|
158
151
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
152
|
+
version: 1.53.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
160
154
|
requirement: !ruby/object:Gem::Requirement
|
161
155
|
requirements:
|
162
|
-
- - ~>
|
156
|
+
- - "~>"
|
163
157
|
- !ruby/object:Gem::Version
|
164
158
|
version: 2.1.0
|
159
|
+
name: offsite_payments
|
165
160
|
prerelease: false
|
166
161
|
type: :runtime
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: monetize
|
169
162
|
version_requirements: !ruby/object:Gem::Requirement
|
170
163
|
requirements:
|
171
|
-
- - ~>
|
164
|
+
- - "~>"
|
172
165
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
166
|
+
version: 2.1.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
174
168
|
requirement: !ruby/object:Gem::Requirement
|
175
169
|
requirements:
|
176
|
-
- - ~>
|
170
|
+
- - "~>"
|
177
171
|
- !ruby/object:Gem::Version
|
178
172
|
version: 1.1.0
|
173
|
+
name: monetize
|
179
174
|
prerelease: false
|
180
175
|
type: :runtime
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: money
|
183
176
|
version_requirements: !ruby/object:Gem::Requirement
|
184
177
|
requirements:
|
185
|
-
- - ~>
|
178
|
+
- - "~>"
|
186
179
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
180
|
+
version: 1.1.0
|
181
|
+
- !ruby/object:Gem::Dependency
|
188
182
|
requirement: !ruby/object:Gem::Requirement
|
189
183
|
requirements:
|
190
|
-
- - ~>
|
184
|
+
- - "~>"
|
191
185
|
- !ruby/object:Gem::Version
|
192
186
|
version: 6.5.1
|
187
|
+
name: money
|
193
188
|
prerelease: false
|
194
189
|
type: :runtime
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: jbundler
|
197
190
|
version_requirements: !ruby/object:Gem::Requirement
|
198
191
|
requirements:
|
199
|
-
- - ~>
|
192
|
+
- - "~>"
|
200
193
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
194
|
+
version: 6.5.1
|
195
|
+
- !ruby/object:Gem::Dependency
|
202
196
|
requirement: !ruby/object:Gem::Requirement
|
203
197
|
requirements:
|
204
|
-
- - ~>
|
198
|
+
- - "~>"
|
205
199
|
- !ruby/object:Gem::Version
|
206
200
|
version: 0.9.2
|
201
|
+
name: jbundler
|
207
202
|
prerelease: false
|
208
203
|
type: :development
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: rake
|
211
204
|
version_requirements: !ruby/object:Gem::Requirement
|
212
205
|
requirements:
|
213
|
-
- -
|
206
|
+
- - "~>"
|
214
207
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
208
|
+
version: 0.9.2
|
209
|
+
- !ruby/object:Gem::Dependency
|
216
210
|
requirement: !ruby/object:Gem::Requirement
|
217
211
|
requirements:
|
218
|
-
- -
|
212
|
+
- - ">="
|
219
213
|
- !ruby/object:Gem::Version
|
220
214
|
version: 10.0.0
|
215
|
+
name: rake
|
221
216
|
prerelease: false
|
222
217
|
type: :development
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: rspec
|
225
218
|
version_requirements: !ruby/object:Gem::Requirement
|
226
219
|
requirements:
|
227
|
-
- -
|
220
|
+
- - ">="
|
228
221
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
222
|
+
version: 10.0.0
|
223
|
+
- !ruby/object:Gem::Dependency
|
230
224
|
requirement: !ruby/object:Gem::Requirement
|
231
225
|
requirements:
|
232
|
-
- - ~>
|
226
|
+
- - "~>"
|
233
227
|
- !ruby/object:Gem::Version
|
234
228
|
version: 2.12.0
|
229
|
+
name: rspec
|
235
230
|
prerelease: false
|
236
231
|
type: :development
|
237
|
-
- !ruby/object:Gem::Dependency
|
238
|
-
name: jdbc-sqlite3
|
239
232
|
version_requirements: !ruby/object:Gem::Requirement
|
240
233
|
requirements:
|
241
|
-
- - ~>
|
234
|
+
- - "~>"
|
242
235
|
- !ruby/object:Gem::Version
|
243
|
-
version:
|
236
|
+
version: 2.12.0
|
237
|
+
- !ruby/object:Gem::Dependency
|
244
238
|
requirement: !ruby/object:Gem::Requirement
|
245
239
|
requirements:
|
246
|
-
- - ~>
|
240
|
+
- - "~>"
|
247
241
|
- !ruby/object:Gem::Version
|
248
242
|
version: '3.7'
|
243
|
+
name: jdbc-sqlite3
|
249
244
|
prerelease: false
|
250
245
|
type: :development
|
251
|
-
- !ruby/object:Gem::Dependency
|
252
|
-
name: jdbc-mariadb
|
253
246
|
version_requirements: !ruby/object:Gem::Requirement
|
254
247
|
requirements:
|
255
|
-
- - ~>
|
248
|
+
- - "~>"
|
256
249
|
- !ruby/object:Gem::Version
|
257
|
-
version: '
|
250
|
+
version: '3.7'
|
251
|
+
- !ruby/object:Gem::Dependency
|
258
252
|
requirement: !ruby/object:Gem::Requirement
|
259
253
|
requirements:
|
260
|
-
- - ~>
|
254
|
+
- - "~>"
|
261
255
|
- !ruby/object:Gem::Version
|
262
256
|
version: '1.1'
|
257
|
+
name: jdbc-mariadb
|
263
258
|
prerelease: false
|
264
259
|
type: :development
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "~>"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '1.1'
|
265
265
|
description: Kill Bill Plugin to test the payment plugin api.
|
266
266
|
email: killbilling-users@googlegroups.com
|
267
267
|
executables: []
|
268
268
|
extensions: []
|
269
269
|
extra_rdoc_files: []
|
270
270
|
files:
|
271
|
-
- .gitignore
|
272
|
-
- .travis.yml
|
273
|
-
- Gemfile
|
274
|
-
- Gemfile.head
|
275
|
-
- Gemfile.lock
|
276
|
-
- Jarfile
|
277
|
-
- Jarfile.lock
|
278
|
-
- README.md
|
279
|
-
- Rakefile
|
280
|
-
- VERSION
|
281
|
-
- config.ru
|
282
|
-
- killbill-payment-test.gemspec
|
283
|
-
- killbill.properties
|
284
271
|
- lib/payment_test.rb
|
285
272
|
- lib/payment_test/api.rb
|
286
273
|
- lib/payment_test/api_beatrix.rb
|
@@ -288,33 +275,29 @@ files:
|
|
288
275
|
- lib/payment_test/application.rb
|
289
276
|
- lib/payment_test/plugin_property_utils.rb
|
290
277
|
- lib/payment_test/state.rb
|
291
|
-
- pom.xml
|
292
|
-
- release.sh
|
293
|
-
- spec/payment_test/base_plugin_spec.rb
|
294
|
-
- spec/spec_helper.rb
|
295
278
|
homepage: http://killbill.io
|
296
279
|
licenses:
|
297
280
|
- Apache License (2.0)
|
298
281
|
metadata: {}
|
299
282
|
post_install_message:
|
300
283
|
rdoc_options:
|
301
|
-
- --exclude
|
302
|
-
- .
|
284
|
+
- "--exclude"
|
285
|
+
- "."
|
303
286
|
require_paths:
|
304
287
|
- lib
|
305
288
|
required_ruby_version: !ruby/object:Gem::Requirement
|
306
289
|
requirements:
|
307
|
-
- -
|
290
|
+
- - ">="
|
308
291
|
- !ruby/object:Gem::Version
|
309
292
|
version: 1.9.3
|
310
293
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
294
|
requirements:
|
312
|
-
- -
|
295
|
+
- - ">="
|
313
296
|
- !ruby/object:Gem::Version
|
314
297
|
version: '0'
|
315
298
|
requirements: []
|
316
299
|
rubyforge_project:
|
317
|
-
rubygems_version: 2.4.
|
300
|
+
rubygems_version: 2.4.8
|
318
301
|
signing_key:
|
319
302
|
specification_version: 4
|
320
303
|
summary: Plugin to test the payment plugin api.
|
data/.gitignore
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
*.swp
|
4
|
-
.bundle
|
5
|
-
.config
|
6
|
-
coverage
|
7
|
-
InstalledFiles
|
8
|
-
lib/bundler/man
|
9
|
-
pkg
|
10
|
-
rdoc
|
11
|
-
spec/reports
|
12
|
-
test/tmp
|
13
|
-
test/version_tmp
|
14
|
-
tmp
|
15
|
-
|
16
|
-
# YARD artifacts
|
17
|
-
.yardoc
|
18
|
-
_yardoc
|
19
|
-
doc/
|
20
|
-
|
21
|
-
.jbundler
|
22
|
-
|
23
|
-
.DS_Store
|
24
|
-
|
25
|
-
# Testing database
|
26
|
-
test.db
|
27
|
-
|
28
|
-
target
|
29
|
-
pom.xml.asc
|
30
|
-
|
31
|
-
.idea/
|
32
|
-
|
33
|
-
Gemfile.head.lock
|
data/.travis.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
sudo: false
|
4
|
-
cache: bundler
|
5
|
-
|
6
|
-
before_script:
|
7
|
-
- bundle exec jbundle install
|
8
|
-
|
9
|
-
script: 'bundle exec rake spec'
|
10
|
-
|
11
|
-
notifications:
|
12
|
-
email:
|
13
|
-
- kill-bill-commits@googlegroups.com
|
14
|
-
|
15
|
-
env:
|
16
|
-
global:
|
17
|
-
- JRUBY_OPTS='-J-Xmx1024M'
|
18
|
-
|
19
|
-
rvm:
|
20
|
-
- jruby-1.7.20
|
21
|
-
- jruby-20mode # latest 1.7.x
|
22
|
-
- jruby-head
|
23
|
-
|
24
|
-
gemfile:
|
25
|
-
- Gemfile
|
26
|
-
- Gemfile.head
|
27
|
-
|
28
|
-
jdk:
|
29
|
-
- openjdk7
|
30
|
-
- oraclejdk7
|
31
|
-
- oraclejdk8
|
32
|
-
|
33
|
-
matrix:
|
34
|
-
allow_failures:
|
35
|
-
- rvm: jruby-head
|
36
|
-
- jdk: oraclejdk8
|
37
|
-
- gemfile: Gemfile.head
|
38
|
-
fast_finish: true
|
39
|
-
|
40
|
-
after_success:
|
41
|
-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && echo "<settings><servers><server><id>sonatype-nexus-snapshots</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml && MVN="mvn --settings $HOME/settings.xml" NO_RELEASE=1 travis_retry travis_wait bash release.sh | egrep -v "Download|Install|Upload" ; rm -f ~/settings.xml'
|
data/Gemfile
DELETED
data/Gemfile.head
DELETED
data/Gemfile.lock
DELETED
@@ -1,149 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
killbill-payment-test (4.0.0)
|
5
|
-
actionpack (~> 4.1.0)
|
6
|
-
actionview (~> 4.1.0)
|
7
|
-
activemerchant (~> 1.53.0)
|
8
|
-
activerecord (~> 4.1.0)
|
9
|
-
activerecord-bogacs (~> 0.3)
|
10
|
-
activerecord-jdbc-adapter (~> 1.3)
|
11
|
-
jruby-openssl (~> 0.9.6)
|
12
|
-
killbill (~> 8.0)
|
13
|
-
monetize (~> 1.1.0)
|
14
|
-
money (~> 6.5.1)
|
15
|
-
offsite_payments (~> 2.1.0)
|
16
|
-
sinatra (~> 1.3.4)
|
17
|
-
thread_safe (~> 0.3.4)
|
18
|
-
|
19
|
-
GEM
|
20
|
-
remote: https://rubygems.org/
|
21
|
-
specs:
|
22
|
-
actionpack (4.1.16)
|
23
|
-
actionview (= 4.1.16)
|
24
|
-
activesupport (= 4.1.16)
|
25
|
-
rack (~> 1.5.2)
|
26
|
-
rack-test (~> 0.6.2)
|
27
|
-
actionview (4.1.16)
|
28
|
-
activesupport (= 4.1.16)
|
29
|
-
builder (~> 3.1)
|
30
|
-
erubis (~> 2.7.0)
|
31
|
-
active_utils (3.0.0)
|
32
|
-
activesupport (>= 3.2)
|
33
|
-
i18n
|
34
|
-
activemerchant (1.53.0)
|
35
|
-
activesupport (>= 3.2.14, < 5.0.0)
|
36
|
-
builder (>= 2.1.2, < 4.0.0)
|
37
|
-
i18n (>= 0.6.9)
|
38
|
-
nokogiri (~> 1.4)
|
39
|
-
activemodel (4.1.16)
|
40
|
-
activesupport (= 4.1.16)
|
41
|
-
builder (~> 3.1)
|
42
|
-
activerecord (4.1.16)
|
43
|
-
activemodel (= 4.1.16)
|
44
|
-
activesupport (= 4.1.16)
|
45
|
-
arel (~> 5.0.0)
|
46
|
-
activerecord-bogacs (0.5.0)
|
47
|
-
activerecord-jdbc-adapter (1.3.21)
|
48
|
-
activerecord (>= 2.2)
|
49
|
-
activesupport (4.1.16)
|
50
|
-
i18n (~> 0.6, >= 0.6.9)
|
51
|
-
json (~> 1.7, >= 1.7.7)
|
52
|
-
minitest (~> 5.1)
|
53
|
-
thread_safe (~> 0.1)
|
54
|
-
tzinfo (~> 1.1)
|
55
|
-
arel (5.0.1.20140414130214)
|
56
|
-
axiom-types (0.1.1)
|
57
|
-
descendants_tracker (~> 0.0.4)
|
58
|
-
ice_nine (~> 0.11.0)
|
59
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
60
|
-
builder (3.2.2)
|
61
|
-
coercible (1.0.0)
|
62
|
-
descendants_tracker (~> 0.0.1)
|
63
|
-
descendants_tracker (0.0.4)
|
64
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
65
|
-
diff-lcs (1.1.3)
|
66
|
-
equalizer (0.0.11)
|
67
|
-
erubis (2.7.0)
|
68
|
-
ethon (0.9.1)
|
69
|
-
ffi (>= 1.3.0)
|
70
|
-
ffi (1.9.14-java)
|
71
|
-
i18n (0.7.0)
|
72
|
-
ice_nine (0.11.1)
|
73
|
-
jar-dependencies (0.3.1)
|
74
|
-
jbundler (0.9.2)
|
75
|
-
bundler (~> 1.5)
|
76
|
-
jar-dependencies (~> 0.2)
|
77
|
-
maven-tools (~> 1.0.10)
|
78
|
-
ruby-maven (~> 3.3, >= 3.3.3)
|
79
|
-
jdbc-mariadb (1.2.3)
|
80
|
-
jdbc-sqlite3 (3.8.11.2)
|
81
|
-
jruby-openssl (0.9.18-java)
|
82
|
-
json (1.8.3-java)
|
83
|
-
killbill (8.3.1)
|
84
|
-
rack (>= 1.5.2)
|
85
|
-
sinatra (~> 1.3.4)
|
86
|
-
typhoeus (~> 0.6.9)
|
87
|
-
tzinfo (~> 1.2.0)
|
88
|
-
maven-tools (1.0.13)
|
89
|
-
virtus (~> 1.0)
|
90
|
-
minitest (5.9.1)
|
91
|
-
monetize (1.1.0)
|
92
|
-
money (~> 6.5.0)
|
93
|
-
money (6.5.1)
|
94
|
-
i18n (>= 0.6.4, <= 0.7.0)
|
95
|
-
nokogiri (1.6.8.1-java)
|
96
|
-
offsite_payments (2.1.0)
|
97
|
-
actionpack (>= 3.2.20, < 5.0.0)
|
98
|
-
active_utils (~> 3.0.0)
|
99
|
-
activesupport (>= 3.2.14, < 5.0.0)
|
100
|
-
builder (>= 2.1.2, < 4.0.0)
|
101
|
-
i18n (~> 0.5)
|
102
|
-
money (>= 5.0.0, < 7.0.0)
|
103
|
-
nokogiri (~> 1.4)
|
104
|
-
rack (1.5.5)
|
105
|
-
rack-protection (1.5.3)
|
106
|
-
rack
|
107
|
-
rack-test (0.6.3)
|
108
|
-
rack (>= 1.0)
|
109
|
-
rake (10.4.2)
|
110
|
-
rspec (2.12.0)
|
111
|
-
rspec-core (~> 2.12.0)
|
112
|
-
rspec-expectations (~> 2.12.0)
|
113
|
-
rspec-mocks (~> 2.12.0)
|
114
|
-
rspec-core (2.12.2)
|
115
|
-
rspec-expectations (2.12.1)
|
116
|
-
diff-lcs (~> 1.1.3)
|
117
|
-
rspec-mocks (2.12.2)
|
118
|
-
ruby-maven (3.3.8)
|
119
|
-
ruby-maven-libs (~> 3.3.1)
|
120
|
-
ruby-maven-libs (3.3.3)
|
121
|
-
sinatra (1.3.6)
|
122
|
-
rack (~> 1.4)
|
123
|
-
rack-protection (~> 1.3)
|
124
|
-
tilt (~> 1.3, >= 1.3.3)
|
125
|
-
thread_safe (0.3.5-java)
|
126
|
-
tilt (1.4.1)
|
127
|
-
typhoeus (0.6.9)
|
128
|
-
ethon (>= 0.7.1)
|
129
|
-
tzinfo (1.2.2)
|
130
|
-
thread_safe (~> 0.1)
|
131
|
-
virtus (1.0.5)
|
132
|
-
axiom-types (~> 0.1)
|
133
|
-
coercible (~> 1.0)
|
134
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
135
|
-
equalizer (~> 0.0, >= 0.0.9)
|
136
|
-
|
137
|
-
PLATFORMS
|
138
|
-
java
|
139
|
-
|
140
|
-
DEPENDENCIES
|
141
|
-
jbundler (~> 0.9.2)
|
142
|
-
jdbc-mariadb (~> 1.1)
|
143
|
-
jdbc-sqlite3 (~> 3.7)
|
144
|
-
killbill-payment-test!
|
145
|
-
rake (>= 10.0.0)
|
146
|
-
rspec (~> 2.12.0)
|
147
|
-
|
148
|
-
BUNDLED WITH
|
149
|
-
1.11.2
|
data/Jarfile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
jar 'org.kill-bill.billing:killbill-api', '0.50'
|
2
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.23'
|
3
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.23'
|
4
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.23'
|
5
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.23'
|
6
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.23'
|
7
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.23'
|
8
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.23'
|
9
|
-
jar 'org.kill-bill.billing:killbill-util:tests', '0.18.0'
|
10
|
-
jar 'org.kill-bill.billing:killbill-util', '0.18.0'
|
11
|
-
jar 'org.mockito:mockito-all', '1.10.19'
|
12
|
-
jar 'javax.servlet:javax.servlet-api', '3.1.0'
|
data/Jarfile.lock
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
---
|
2
|
-
:runtime:
|
3
|
-
- io.dropwizard.metrics:metrics-core:jar:3.1.1
|
4
|
-
- joda-time:joda-time:jar:2.3
|
5
|
-
- org.weakref:jmxutils:jar:1.18
|
6
|
-
- commons-beanutils:commons-beanutils:jar:1.8.3
|
7
|
-
- com.google.inject:guice:jar:3.0
|
8
|
-
- org.osgi:org.osgi.core:jar:5.0.0
|
9
|
-
- com.fasterxml.jackson.core:jackson-databind:jar:2.4.5
|
10
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.23
|
11
|
-
- org.kill-bill.billing:killbill-platform-api:jar:0.36.1
|
12
|
-
- com.samskivert:jmustache:jar:1.5
|
13
|
-
- org.kill-bill.commons:killbill-clock:jar:0.20
|
14
|
-
- org.kill-bill.billing:killbill-util:jar:0.18.0
|
15
|
-
- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.5
|
16
|
-
- org.bouncycastle:bcprov-jdk15on:jar:1.55
|
17
|
-
- org.bouncycastle:bcpkix-jdk15on:jar:1.55
|
18
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.23
|
19
|
-
- org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
|
20
|
-
- com.h2database:h2:jar:1.4.186
|
21
|
-
- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.5
|
22
|
-
- javax.activation:activation:jar:1.1
|
23
|
-
- org.javassist:javassist:jar:3.19.0-GA
|
24
|
-
- org.skife.config:config-magic:jar:0.14
|
25
|
-
- org.apache.commons:commons-email:jar:1.2
|
26
|
-
- org.mockito:mockito-all:jar:1.10.19
|
27
|
-
- antlr:antlr:jar:2.7.7
|
28
|
-
- aopalliance:aopalliance:jar:1.0
|
29
|
-
- com.zaxxer:HikariCP-java6:jar:2.3.7
|
30
|
-
- org.slf4j:slf4j-api:jar:1.7.21
|
31
|
-
- com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3
|
32
|
-
- org.antlr:stringtemplate:jar:3.2.1
|
33
|
-
- org.slf4j:jcl-over-slf4j:jar:1.7.21
|
34
|
-
- javax.mail:mail:jar:1.4.1
|
35
|
-
- io.dropwizard.metrics:metrics-ehcache:jar:3.1.1
|
36
|
-
- org.jdbi:jdbi:jar:2.62
|
37
|
-
- com.fasterxml.jackson.core:jackson-core:jar:2.4.5
|
38
|
-
- org.apache.felix:org.apache.felix.framework:jar:4.4.1
|
39
|
-
- org.joda:joda-money:jar:0.9
|
40
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.23
|
41
|
-
- org.apache.shiro:shiro-core:jar:1.2.3
|
42
|
-
- org.kill-bill.billing:killbill-internal-api:jar:0.18.0
|
43
|
-
- org.kill-bill.billing:killbill-util:jar:tests:0.18.0
|
44
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.23
|
45
|
-
- org.kill-bill.commons:killbill-jdbi:jar:0.20
|
46
|
-
- com.google.guava:guava:jar:r09
|
47
|
-
- org.kill-bill.commons:killbill-queue:jar:0.20
|
48
|
-
- org.osgi:org.osgi.compendium:jar:5.0.0
|
49
|
-
- org.kill-bill.commons:killbill-xmlloader:jar:0.20
|
50
|
-
- javax.servlet:javax.servlet-api:jar:3.1.0
|
51
|
-
- org.kill-bill.billing:killbill-platform-osgi:jar:0.36.1
|
52
|
-
- org.kill-bill.billing:killbill-platform-base:jar:0.36.1
|
53
|
-
- org.apache.shiro:shiro-ehcache:jar:1.2.3
|
54
|
-
- javax.inject:javax.inject:jar:1
|
55
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.23
|
56
|
-
- org.kill-bill.billing:killbill-api:jar:0.50
|
57
|
-
- org.kill-bill.billing:killbill-platform-osgi-api:jar:0.36.1
|
58
|
-
- com.google.inject.extensions:guice-multibindings:jar:3.0
|
59
|
-
- net.sf.ehcache:ehcache:jar:2.9.1
|
60
|
-
- org.kill-bill.commons:killbill-locker:jar:0.20
|
61
|
-
- org.kill-bill.commons:killbill-embeddeddb-common:jar:0.20
|
62
|
-
- org.apache.shiro:shiro-guice:jar:1.2.3
|
63
|
-
- org.kill-bill.commons:killbill-concurrent:jar:0.20
|
64
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.23
|
65
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.23
|
66
|
-
- com.google.code.findbugs:annotations:jar:3.0.0
|
data/README.md
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
# killbill-payment-test-plugin
|
2
|
-
|
3
|
-
Plugin to test the Kill Bill PaymentPlugin API.
|
4
|
-
|
5
|
-
Release builds are available on [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.kill-bill.billing.plugin.ruby%22%20AND%20a%3A%22payment-test-plugin%22) with coordinates `org.kill-bill.billing.plugin.ruby:payment-test-plugin`.
|
6
|
-
|
7
|
-
Kill Bill compatibility
|
8
|
-
-----------------------
|
9
|
-
|
10
|
-
| Plugin version | Kill Bill version |
|
11
|
-
| -------------: | ----------------: |
|
12
|
-
| 2.x.y | 0.14.z |
|
13
|
-
| 3.x.y | 0.16.z |
|
14
|
-
| 4.x.y | 0.18.z |
|
15
|
-
|
16
|
-
|
17
|
-
Usage
|
18
|
-
-----
|
19
|
-
|
20
|
-
The plugin currently supports 3 different modes
|
21
|
-
|
22
|
-
* A mode mode where the plugin can be configured on a per request basis
|
23
|
-
* A mode where the plugin can be configured through a private endpoint for all subsequent requests
|
24
|
-
* A backward compatible mode for existing killbill unit test
|
25
|
-
|
26
|
-
## Per Request Level Configuration
|
27
|
-
|
28
|
-
When using payment api, one can provide payment plugin properties to enable failure modes:
|
29
|
-
|
30
|
-
In that mode, the property `TEST_MODE` must be set to something different than `BEATRIX` (any other string would work. In addition the following properties are allowed:
|
31
|
-
|
32
|
-
* `ACTION_RETURN_PLUGIN_STATUS_ERROR`=true : This will make the plugin return a `PaymentPluginStatus.ERROR` on each payment call (e.g to simulate Insuficient Fund type of errors).
|
33
|
-
* `THROW_EXCEPTION`=true : This will make the plugin throw RuntimeException exception on each call
|
34
|
-
* `RETURN_NIL`=true : This will make the plugin return a nil value on each call
|
35
|
-
* `SLEEP_TIME_SEC`=sleep_time_sec : This will make the plugin sleep `sleep_time_sec` on each call
|
36
|
-
|
37
|
-
## Global State Configuration
|
38
|
-
|
39
|
-
There are cases where it is not possible to pass plugin properties because the payments are made by the system, and the user does not have the opportunity to set plugin properties. For example, when Kill Bill attempts to pay an invoice, it make a `purchase_payment` call without passing plugin properties.
|
40
|
-
|
41
|
-
In order to address this scenario it is convenient to configure the plugin to behave a certain way. The plugin can be configured using a private endpoint `/plugins/killbill-payment-test/configure` to either throw exceptions, return nil values or sleep (similar to previous mode). However we also allow to configure which operations should behave that way (the idea is that we may want to make a `purchase_payment` call fail but still allow the `get_payment_info` call to return.
|
42
|
-
|
43
|
-
The json body for the call supports the following:
|
44
|
-
|
45
|
-
* `CONFIGURE_ACTION`: {`ACTION_THROW_EXCEPTION`|`ACTION_RETURN_NIL`|`ACTION_SLEEP`|`ACTION_RESET`}
|
46
|
-
* `SLEEP_TIME_SEC`: (valid for `CONFIGURE_ACTION` = `ACTION_SLEEP`
|
47
|
-
* `METHODS`: The payment plugin api methods for which the configuration apply (or all methods if not specified)
|
48
|
-
|
49
|
-
Examples:
|
50
|
-
|
51
|
-
This will confgure the plugin to return an payment error on each `purchase_payment` call (note that the name of the methods come from the definition of the [payment plugin api](https://github.com/killbill/killbill-plugin-api/blob/master/payment/src/main/java/org/killbill/billing/payment/plugin/api/PaymentPluginApi.java):
|
52
|
-
|
53
|
-
```
|
54
|
-
curl -v \
|
55
|
-
-u'admin:password' \
|
56
|
-
-H "X-Killbill-ApiKey: bob" \
|
57
|
-
-H 'X-Killbill-ApiSecret: lazar' \
|
58
|
-
-H "Content-Type: application/json" \
|
59
|
-
-H 'X-Killbill-CreatedBy: stephane' \
|
60
|
-
-X POST \
|
61
|
-
--data-binary '{"CONFIGURE_ACTION":"ACTION_RETURN_PLUGIN_STATUS_ERROR", "METHODS":"purchase_payment"}' \
|
62
|
-
-v 'http://127.0.0.1:8080/plugins/killbill-payment-test/configure'
|
63
|
-
```
|
64
|
-
|
65
|
-
One can clear the state with the following:
|
66
|
-
|
67
|
-
```
|
68
|
-
curl -v \
|
69
|
-
-u'admin:password' \
|
70
|
-
-H "X-Killbill-ApiKey: bob" \
|
71
|
-
-H 'X-Killbill-ApiSecret: lazar' \
|
72
|
-
-H "Content-Type: application/json" \
|
73
|
-
-H 'X-Killbill-CreatedBy: stephane' \
|
74
|
-
-X POST \
|
75
|
-
--data-binary '{"CONFIGURE_ACTION":"ACTION_CLEAR"}' \
|
76
|
-
-v 'http://127.0.0.1:8080/plugins/killbill-payment-test/configure'
|
77
|
-
```
|
78
|
-
|
79
|
-
## Kill Bill Backward Compatible Configuration
|
80
|
-
|
81
|
-
This should be ignored as this will be deprecated.
|
data/Rakefile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
|
3
|
-
# Install tasks to build and release the plugin
|
4
|
-
require 'bundler/setup'
|
5
|
-
Bundler::GemHelper.install_tasks
|
6
|
-
|
7
|
-
# Install test tasks
|
8
|
-
require 'rspec/core/rake_task'
|
9
|
-
desc "Run RSpec"
|
10
|
-
RSpec::Core::RakeTask.new
|
11
|
-
|
12
|
-
# Install tasks to package the plugin for Killbill
|
13
|
-
require 'killbill/rake_task'
|
14
|
-
Killbill::PluginHelper.install_tasks
|
15
|
-
|
16
|
-
# Run tests by default
|
17
|
-
task :default => :spec
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
4.0.0
|
data/config.ru
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
version = File.read(File.expand_path('../VERSION', __FILE__)).strip
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = 'killbill-payment-test'
|
5
|
-
s.version = version
|
6
|
-
s.summary = 'Plugin to test the payment plugin api.'
|
7
|
-
s.description = 'Kill Bill Plugin to test the payment plugin api.'
|
8
|
-
|
9
|
-
s.required_ruby_version = '>= 1.9.3'
|
10
|
-
|
11
|
-
s.license = 'Apache License (2.0)'
|
12
|
-
|
13
|
-
s.author = 'Kill Bill core team'
|
14
|
-
s.email = 'killbilling-users@googlegroups.com'
|
15
|
-
s.homepage = 'http://killbill.io'
|
16
|
-
|
17
|
-
s.files = `git ls-files`.split("\n")
|
18
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
-
s.bindir = 'bin'
|
20
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
-
s.require_paths = ["lib"]
|
22
|
-
|
23
|
-
s.rdoc_options << '--exclude' << '.'
|
24
|
-
|
25
|
-
s.add_dependency 'killbill', '~> 8.0'
|
26
|
-
|
27
|
-
s.add_dependency 'sinatra', '~> 1.3.4'
|
28
|
-
s.add_dependency 'thread_safe', '~> 0.3.4'
|
29
|
-
s.add_dependency 'activerecord', '~> 4.1.0'
|
30
|
-
if defined?(JRUBY_VERSION)
|
31
|
-
s.add_dependency 'activerecord-bogacs', '~> 0.3'
|
32
|
-
s.add_dependency 'activerecord-jdbc-adapter', '~> 1.3'
|
33
|
-
# Required to avoid errors like java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean
|
34
|
-
s.add_dependency 'jruby-openssl', '~> 0.9.6'
|
35
|
-
end
|
36
|
-
s.add_dependency 'actionpack', '~> 4.1.0'
|
37
|
-
s.add_dependency 'actionview', '~> 4.1.0'
|
38
|
-
s.add_dependency 'activemerchant', '~> 1.53.0'
|
39
|
-
s.add_dependency 'offsite_payments', '~> 2.1.0'
|
40
|
-
s.add_dependency 'monetize', '~> 1.1.0'
|
41
|
-
s.add_dependency 'money', '~> 6.5.1'
|
42
|
-
|
43
|
-
s.add_development_dependency 'jbundler', '~> 0.9.2'
|
44
|
-
s.add_development_dependency 'rake', '>= 10.0.0'
|
45
|
-
s.add_development_dependency 'rspec', '~> 2.12.0'
|
46
|
-
if defined?(JRUBY_VERSION)
|
47
|
-
s.add_development_dependency 'jdbc-sqlite3', '~> 3.7'
|
48
|
-
s.add_development_dependency 'jdbc-mariadb', '~> 1.1'
|
49
|
-
else
|
50
|
-
s.add_development_dependency 'sqlite3', '~> 1.3.7'
|
51
|
-
end
|
52
|
-
end
|
data/killbill.properties
DELETED
data/pom.xml
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!--
|
3
|
-
~ Copyright 2010-2013 Ning, Inc.
|
4
|
-
~ Copyright 2014-2015 Groupon, Inc
|
5
|
-
~ Copyright 2014-2015 The Billing Project, LLC
|
6
|
-
~
|
7
|
-
~ The Billing Project licenses this file to you under the Apache License, version 2.0
|
8
|
-
~ (the "License"); you may not use this file except in compliance with the
|
9
|
-
~ License. You may obtain a copy of the License at:
|
10
|
-
~
|
11
|
-
~ http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
~
|
13
|
-
~ Unless required by applicable law or agreed to in writing, software
|
14
|
-
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
15
|
-
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
16
|
-
~ License for the specific language governing permissions and limitations
|
17
|
-
~ under the License.
|
18
|
-
-->
|
19
|
-
|
20
|
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
21
|
-
<parent>
|
22
|
-
<groupId>org.sonatype.oss</groupId>
|
23
|
-
<artifactId>oss-parent</artifactId>
|
24
|
-
<version>5</version>
|
25
|
-
</parent>
|
26
|
-
<modelVersion>4.0.0</modelVersion>
|
27
|
-
<groupId>org.kill-bill.billing.plugin.ruby</groupId>
|
28
|
-
<artifactId>payment-test-plugin</artifactId>
|
29
|
-
<packaging>pom</packaging>
|
30
|
-
<version>4.0.0</version>
|
31
|
-
<name>payment-test-plugin</name>
|
32
|
-
<description></description>
|
33
|
-
<scm>
|
34
|
-
<connection>scm:git:git://github.com/killbill/killbill-payment-test-plugin.git</connection>
|
35
|
-
<url>https://github.com/killbill/killbill-payment-test-plugin/</url>
|
36
|
-
<developerConnection>scm:git:git@github.com:killbill/killbill-payment-test-plugin.git</developerConnection>
|
37
|
-
</scm>
|
38
|
-
</project>
|
data/release.sh
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
set -e
|
2
|
-
|
3
|
-
BUNDLE=${BUNDLE-"bundle exec"}
|
4
|
-
MVN=${MVN-"mvn"}
|
5
|
-
|
6
|
-
if [ 'GNU' != "$(tar --help | grep GNU | head -1 | awk '{print $1}')" ]; then
|
7
|
-
echo 'Unable to release: make sure to use GNU tar'
|
8
|
-
exit 1
|
9
|
-
fi
|
10
|
-
|
11
|
-
if $(ruby -e'require "java"'); then
|
12
|
-
# Good
|
13
|
-
echo 'Detected JRuby'
|
14
|
-
else
|
15
|
-
echo 'Unable to release: make sure to use JRuby'
|
16
|
-
exit 1
|
17
|
-
fi
|
18
|
-
|
19
|
-
VERSION=`grep -E '<version>([0-9]+\.[0-9]+\.[0-9]+)</version>' pom.xml | sed 's/[\t \n]*<version>\(.*\)<\/version>[\t \n]*/\1/'`
|
20
|
-
if [[ -z "$NO_RELEASE" && "$VERSION" != "$(cat $PWD/VERSION)" ]]; then
|
21
|
-
echo 'Unable to release: make sure the versions in pom.xml and VERSION match'
|
22
|
-
exit 1
|
23
|
-
fi
|
24
|
-
|
25
|
-
echo 'Cleaning up'
|
26
|
-
$BUNDLE rake killbill:clean
|
27
|
-
|
28
|
-
echo 'Building gem'
|
29
|
-
$BUNDLE rake build
|
30
|
-
|
31
|
-
if [[ -z "$NO_RELEASE" ]]; then
|
32
|
-
echo 'Pushing the gem to Rubygems'
|
33
|
-
$BUNDLE rake release
|
34
|
-
fi
|
35
|
-
|
36
|
-
echo 'Building artifact'
|
37
|
-
$BUNDLE rake killbill:package
|
38
|
-
|
39
|
-
ARTIFACT="$PWD/pkg/killbill-payment-test-$VERSION.tar.gz"
|
40
|
-
echo "Pushing $ARTIFACT to Maven Central"
|
41
|
-
|
42
|
-
if [[ -z "$NO_RELEASE" ]]; then
|
43
|
-
GOAL=gpg:sign-and-deploy-file
|
44
|
-
REPOSITORY_ID=ossrh-releases
|
45
|
-
URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/
|
46
|
-
else
|
47
|
-
GOAL=deploy:deploy-file
|
48
|
-
REPOSITORY_ID=sonatype-nexus-snapshots
|
49
|
-
URL=https://oss.sonatype.org/content/repositories/snapshots/
|
50
|
-
VERSION="$VERSION-SNAPSHOT"
|
51
|
-
fi
|
52
|
-
|
53
|
-
$MVN $GOAL \
|
54
|
-
-DgroupId=org.kill-bill.billing.plugin.ruby \
|
55
|
-
-DartifactId=payment-test-plugin \
|
56
|
-
-Dversion=$VERSION \
|
57
|
-
-Dpackaging=tar.gz \
|
58
|
-
-DrepositoryId=$REPOSITORY_ID \
|
59
|
-
-Durl=$URL \
|
60
|
-
-Dfile=$ARTIFACT \
|
61
|
-
-DpomFile=pom.xml
|
@@ -1,75 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'logger'
|
3
|
-
|
4
|
-
require 'payment_test'
|
5
|
-
|
6
|
-
describe PaymentTest::PaymentPlugin do
|
7
|
-
before(:each) do
|
8
|
-
|
9
|
-
kb_apis = Killbill::Plugin::KillbillApi.new("killbill-payment-test", {})
|
10
|
-
@plugin = PaymentTest::PaymentPlugin.new
|
11
|
-
@plugin.logger = Logger.new(STDOUT)
|
12
|
-
@plugin.kb_apis = kb_apis
|
13
|
-
|
14
|
-
@kb_account_id = "a86ed6d4-c0bd-4a44-b49a-5ec29c3b314a"
|
15
|
-
@kb_payment_id = "9f73c8e9-188a-4603-a3ba-2ce684411fb9"
|
16
|
-
@kb_payment_transaction_id = "46bb26b0-fae2-11e3-a3ac-0800200c9a66"
|
17
|
-
@kb_payment_method_id = "b1396a76-b210-4690-a61e-e94c911a2a09"
|
18
|
-
@amount_in_cents = 100
|
19
|
-
@currency = 'USD'
|
20
|
-
@call_context = nil
|
21
|
-
end
|
22
|
-
|
23
|
-
it "should start and stop correctly" do
|
24
|
-
@plugin.start_plugin
|
25
|
-
@plugin.stop_plugin
|
26
|
-
end
|
27
|
-
|
28
|
-
it "should test charge" do
|
29
|
-
output = @plugin.purchase_payment(@kb_account_id, @kb_payment_id, @kb_payment_transaction_id, @kb_payment_method_id, @amount_in_cents, @currency, nil, @call_context)
|
30
|
-
|
31
|
-
output.should be_an_instance_of Killbill::Plugin::Model::PaymentTransactionInfoPlugin
|
32
|
-
output.amount.should == @amount_in_cents
|
33
|
-
output.status.to_s.should == "PROCESSED"
|
34
|
-
end
|
35
|
-
|
36
|
-
it "should test search" do
|
37
|
-
@plugin.search_payment_methods("blah", 0, 100, nil, @call_context).size.should == 1
|
38
|
-
end
|
39
|
-
|
40
|
-
it "should test control api" do
|
41
|
-
|
42
|
-
properties = []
|
43
|
-
prop_test_mode = Killbill::Plugin::Model::PluginProperty.new
|
44
|
-
prop_test_mode.key = 'TEST_MODE'
|
45
|
-
prop_test_mode.value = 'CONTROL'
|
46
|
-
properties << prop_test_mode
|
47
|
-
|
48
|
-
transaction1 = @plugin.authorize_payment(@kb_account_id, @kb_payment_id, @kb_payment_transaction_id, @kb_payment_method_id, @amount_in_cents, @currency, properties, @call_context)
|
49
|
-
|
50
|
-
transaction1.should be_an_instance_of Killbill::Plugin::Model::PaymentTransactionInfoPlugin
|
51
|
-
transaction1.kb_payment_id.should == @kb_payment_id
|
52
|
-
transaction1.kb_transaction_payment_id.should == @kb_payment_transaction_id
|
53
|
-
transaction1.amount.should == @amount_in_cents
|
54
|
-
transaction1.currency.should == @currency
|
55
|
-
transaction1.transaction_type.should == :AUTHORIZE
|
56
|
-
transaction1.status.should == :PROCESSED
|
57
|
-
|
58
|
-
prop_status = Killbill::Plugin::Model::PluginProperty.new
|
59
|
-
prop_status.key = 'TRANSACTION_STATUS'
|
60
|
-
prop_status.value = 'ERROR'
|
61
|
-
properties << prop_status
|
62
|
-
|
63
|
-
transaction2 = @plugin.capture_payment(@kb_account_id, @kb_payment_id, @kb_payment_transaction_id, @kb_payment_method_id, @amount_in_cents, @currency, properties, @call_context)
|
64
|
-
transaction2.kb_payment_id.should == @kb_payment_id
|
65
|
-
transaction2.kb_transaction_payment_id.should == @kb_payment_transaction_id
|
66
|
-
transaction2.amount.should == @amount_in_cents
|
67
|
-
transaction2.currency.should == @currency
|
68
|
-
transaction2.transaction_type.should == :CAPTURE
|
69
|
-
transaction2.status.should == :ERROR
|
70
|
-
|
71
|
-
transactions = @plugin.get_payment_info(@kb_account_id, @kb_payment_id, properties, @call_context)
|
72
|
-
transactions.size.should == 2
|
73
|
-
end
|
74
|
-
|
75
|
-
end
|