solidus_six_saferpay 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +35 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +12 -0
- data/Gemfile +33 -0
- data/LICENSE +26 -0
- data/README.md +33 -20
- data/Rakefile +4 -54
- data/app/assets/config/solidus_six_saferpay_manifest.js +1 -0
- data/app/assets/images/solidus_six_saferpay/.keep +0 -0
- data/app/assets/javascripts/spree/backend/solidus_six_saferpay.js +2 -0
- data/app/assets/javascripts/spree/frontend/solidus_six_saferpay.js +2 -0
- data/app/assets/stylesheets/spree/backend/solidus_six_saferpay.css +4 -0
- data/app/assets/stylesheets/spree/frontend/solidus_six_saferpay.css +4 -0
- data/app/controllers/spree/solidus_six_saferpay/checkout_controller.rb +49 -7
- data/bin/console +17 -0
- data/bin/rails +18 -0
- data/bin/rake +7 -0
- data/bin/setup +8 -0
- data/config/initializers/assets.rb +3 -0
- data/config/routes.rb +2 -2
- data/lib/generators/solidus_six_saferpay/install/install_generator.rb +15 -3
- data/lib/solidus_six_saferpay.rb +6 -3
- data/lib/solidus_six_saferpay/configuration.rb +4 -7
- data/lib/solidus_six_saferpay/engine.rb +19 -10
- data/lib/solidus_six_saferpay/version.rb +3 -1
- data/solidus_six_saferpay.gemspec +42 -0
- data/spec/controllers/spree/solidus_six_saferpay/checkout_controller_spec.rb +41 -0
- data/spec/controllers/spree/solidus_six_saferpay/payment_page/checkout_controller_spec.rb +205 -0
- data/spec/controllers/spree/solidus_six_saferpay/transaction/checkout_controller_spec.rb +228 -0
- data/spec/factories/payment_methods.rb +23 -0
- data/spec/factories/payments.rb +11 -0
- data/spec/factories/spree/six_saferpay_payments.rb +118 -0
- data/spec/models/spree/six_saferpay_payment_spec.rb +203 -0
- data/spec/rails_helper.rb +73 -0
- data/spec/services/spree/solidus_six_saferpay/assert_payment_page_spec.rb +148 -0
- data/spec/services/spree/solidus_six_saferpay/authorize_payment_spec.rb +39 -0
- data/spec/services/spree/solidus_six_saferpay/authorize_transaction_spec.rb +148 -0
- data/spec/services/spree/solidus_six_saferpay/initialize_payment_page_spec.rb +83 -0
- data/spec/services/spree/solidus_six_saferpay/initialize_payment_spec.rb +40 -0
- data/spec/services/spree/solidus_six_saferpay/initialize_transaction_spec.rb +85 -0
- data/spec/services/spree/solidus_six_saferpay/inquire_payment_page_payment_spec.rb +116 -0
- data/spec/services/spree/solidus_six_saferpay/inquire_payment_spec.rb +39 -0
- data/spec/services/spree/solidus_six_saferpay/inquire_transaction_payment_spec.rb +117 -0
- data/spec/services/spree/solidus_six_saferpay/payment_validator_spec.rb +100 -0
- data/spec/services/spree/solidus_six_saferpay/process_authorized_payment_spec.rb +39 -0
- data/spec/services/spree/solidus_six_saferpay/process_payment_page_payment_spec.rb +225 -0
- data/spec/services/spree/solidus_six_saferpay/process_transaction_payment_spec.rb +219 -0
- data/spec/solidus_six_saferpay/configuration_spec.rb +15 -0
- data/spec/solidus_six_saferpay/error_handler_spec.rb +65 -0
- data/spec/solidus_six_saferpay/gateway_response_spec.rb +70 -0
- data/spec/solidus_six_saferpay/gateway_spec.rb +378 -0
- data/spec/solidus_six_saferpay/payment_page_gateway_spec.rb +390 -0
- data/spec/solidus_six_saferpay/transaction_gateway_spec.rb +387 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/support/route_access.rb +6 -0
- data/spec/support/uses_payment_page_gateway.rb +29 -0
- data/spec/support/uses_transaction_gateway.rb +28 -0
- metadata +241 -58
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Configure Rails Environment
|
4
|
+
ENV['RAILS_ENV'] = 'test'
|
5
|
+
|
6
|
+
# Run Coverage report
|
7
|
+
require 'solidus_dev_support/rspec/coverage'
|
8
|
+
|
9
|
+
require File.expand_path('dummy/config/environment.rb', __dir__)
|
10
|
+
|
11
|
+
# Requires factories and other useful helpers defined in spree_core.
|
12
|
+
require 'solidus_dev_support/rspec/feature_helper'
|
13
|
+
|
14
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
15
|
+
# in spec/support/ and its subdirectories.
|
16
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
17
|
+
|
18
|
+
RSpec.configure do |config|
|
19
|
+
config.infer_spec_type_from_file_location!
|
20
|
+
config.use_transactional_fixtures = false
|
21
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
RSpec.shared_examples "it uses the payment page gateway" do
|
2
|
+
|
3
|
+
it_behaves_like "it has route access"
|
4
|
+
|
5
|
+
describe '#gateway' do
|
6
|
+
it 'configures the gateway urls correctly' do
|
7
|
+
expect(::SolidusSixSaferpay::PaymentPageGateway).to receive(:new)
|
8
|
+
|
9
|
+
subject.gateway
|
10
|
+
end
|
11
|
+
|
12
|
+
context 'when the gateway is configured correctly' do
|
13
|
+
before do
|
14
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_CUSTOMER_ID").and_return("customer_id")
|
15
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_TERMINAL_ID").and_return("terminal_id")
|
16
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_USERNAME").and_return("username")
|
17
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_PASSWORD").and_return("password")
|
18
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_BASE_URL").and_return("base_url")
|
19
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_CSS_URL").and_return("css_url")
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'should return a PaymentPageGateway' do
|
23
|
+
expect(subject.gateway).to be_a(::SolidusSixSaferpay::PaymentPageGateway)
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
RSpec.shared_examples "it uses the transaction gateway" do
|
2
|
+
|
3
|
+
it_behaves_like "it has route access"
|
4
|
+
|
5
|
+
describe '#gateway' do
|
6
|
+
it 'configures the gateway urls correctly' do
|
7
|
+
expect(::SolidusSixSaferpay::TransactionGateway).to receive(:new)
|
8
|
+
subject.gateway
|
9
|
+
end
|
10
|
+
|
11
|
+
context 'when the gateway is configured correctly' do
|
12
|
+
before do
|
13
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_CUSTOMER_ID").and_return("customer_id")
|
14
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_TERMINAL_ID").and_return("terminal_id")
|
15
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_USERNAME").and_return("username")
|
16
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_PASSWORD").and_return("password")
|
17
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_BASE_URL").and_return("base_url")
|
18
|
+
allow(ENV).to receive(:fetch).with("SIX_SAFERPAY_CSS_URL").and_return("css_url")
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should return a TransactionGateway' do
|
22
|
+
expect(subject.gateway).to be_a(::SolidusSixSaferpay::TransactionGateway)
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
metadata
CHANGED
@@ -1,57 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_six_saferpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Kiener
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: solidus_core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 2.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
34
|
+
name: solidus_support
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
39
|
+
version: 0.4.0
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
46
|
+
version: 0.4.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: six_saferpay
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '2.2'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '2.2'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rails-i18n
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,61 +73,53 @@ dependencies:
|
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '5.1'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '2.2'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '2.2'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: sqlite3
|
76
|
+
name: solidus_dev_support
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
86
78
|
requirements:
|
87
|
-
- - "
|
79
|
+
- - ">="
|
88
80
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
81
|
+
version: '0'
|
90
82
|
type: :development
|
91
83
|
prerelease: false
|
92
84
|
version_requirements: !ruby/object:Gem::Requirement
|
93
85
|
requirements:
|
94
|
-
- - "
|
86
|
+
- - ">="
|
95
87
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
88
|
+
version: '0'
|
97
89
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
90
|
+
name: shoulda-matchers
|
99
91
|
requirement: !ruby/object:Gem::Requirement
|
100
92
|
requirements:
|
101
93
|
- - "~>"
|
102
94
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
95
|
+
version: '4.1'
|
104
96
|
type: :development
|
105
97
|
prerelease: false
|
106
98
|
version_requirements: !ruby/object:Gem::Requirement
|
107
99
|
requirements:
|
108
100
|
- - "~>"
|
109
101
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
102
|
+
version: '4.1'
|
111
103
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
104
|
+
name: rails-controller-testing
|
113
105
|
requirement: !ruby/object:Gem::Requirement
|
114
106
|
requirements:
|
115
107
|
- - "~>"
|
116
108
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
109
|
+
version: '1.0'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.0.4
|
118
113
|
type: :development
|
119
114
|
prerelease: false
|
120
115
|
version_requirements: !ruby/object:Gem::Requirement
|
121
116
|
requirements:
|
122
117
|
- - "~>"
|
123
118
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
119
|
+
version: '1.0'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 1.0.4
|
125
123
|
- !ruby/object:Gem::Dependency
|
126
124
|
name: pry
|
127
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,20 +148,6 @@ dependencies:
|
|
150
148
|
- - "~>"
|
151
149
|
- !ruby/object:Gem::Version
|
152
150
|
version: '0.3'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: simplecov
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0.17'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0.17'
|
167
151
|
description: Adds Saferpay Payment Page and Transaction payment methods to your Solidus
|
168
152
|
application
|
169
153
|
email:
|
@@ -172,10 +156,20 @@ executables: []
|
|
172
156
|
extensions: []
|
173
157
|
extra_rdoc_files: []
|
174
158
|
files:
|
159
|
+
- ".circleci/config.yml"
|
160
|
+
- ".gem_release.yml"
|
161
|
+
- ".github/stale.yml"
|
162
|
+
- ".gitignore"
|
163
|
+
- ".rspec"
|
164
|
+
- ".rubocop.yml"
|
165
|
+
- ".travis.yml"
|
166
|
+
- Gemfile
|
167
|
+
- LICENSE
|
175
168
|
- MIT-LICENSE
|
176
169
|
- README.md
|
177
170
|
- Rakefile
|
178
171
|
- app/assets/config/solidus_six_saferpay_manifest.js
|
172
|
+
- app/assets/images/solidus_six_saferpay/.keep
|
179
173
|
- app/assets/images/solidus_six_saferpay/credit_cards/icons/amex.png
|
180
174
|
- app/assets/images/solidus_six_saferpay/credit_cards/icons/bonus_card.png
|
181
175
|
- app/assets/images/solidus_six_saferpay/credit_cards/icons/cirrus.png
|
@@ -202,9 +196,13 @@ files:
|
|
202
196
|
- app/assets/images/solidus_six_saferpay/credit_cards/icons/worldpay.png
|
203
197
|
- app/assets/javascripts/solidus_six_saferpay/application.js
|
204
198
|
- app/assets/javascripts/solidus_six_saferpay/saferpay_payment.js
|
199
|
+
- app/assets/javascripts/spree/backend/solidus_six_saferpay.js
|
200
|
+
- app/assets/javascripts/spree/frontend/solidus_six_saferpay.js
|
205
201
|
- app/assets/stylesheets/solidus_six_saferpay/application.css
|
206
202
|
- app/assets/stylesheets/solidus_six_saferpay/loading_animation.scss
|
207
203
|
- app/assets/stylesheets/solidus_six_saferpay/payments.scss
|
204
|
+
- app/assets/stylesheets/spree/backend/solidus_six_saferpay.css
|
205
|
+
- app/assets/stylesheets/spree/frontend/solidus_six_saferpay.css
|
208
206
|
- app/controllers/solidus_six_saferpay/application_controller.rb
|
209
207
|
- app/controllers/spree/solidus_six_saferpay/checkout_controller.rb
|
210
208
|
- app/controllers/spree/solidus_six_saferpay/payment_page/checkout_controller.rb
|
@@ -236,6 +234,12 @@ files:
|
|
236
234
|
- app/views/spree/checkout/payment/_saferpay_payment.html.erb
|
237
235
|
- app/views/spree/six_saferpay_payments/_six_saferpay_payment.html.erb
|
238
236
|
- app/views/spree/solidus_six_saferpay/checkout/iframe_breakout_redirect.html.erb
|
237
|
+
- bin/console
|
238
|
+
- bin/rails
|
239
|
+
- bin/rake
|
240
|
+
- bin/sandbox
|
241
|
+
- bin/setup
|
242
|
+
- config/initializers/assets.rb
|
239
243
|
- config/locales/de.yml
|
240
244
|
- config/locales/en.yml
|
241
245
|
- config/locales/fr.yml
|
@@ -252,19 +256,110 @@ files:
|
|
252
256
|
- lib/solidus_six_saferpay/payment_page_gateway.rb
|
253
257
|
- lib/solidus_six_saferpay/transaction_gateway.rb
|
254
258
|
- lib/solidus_six_saferpay/version.rb
|
255
|
-
|
259
|
+
- solidus_six_saferpay.gemspec
|
260
|
+
- spec/controllers/spree/solidus_six_saferpay/checkout_controller_spec.rb
|
261
|
+
- spec/controllers/spree/solidus_six_saferpay/payment_page/checkout_controller_spec.rb
|
262
|
+
- spec/controllers/spree/solidus_six_saferpay/transaction/checkout_controller_spec.rb
|
263
|
+
- spec/dummy/.ruby-version
|
264
|
+
- spec/dummy/README.md
|
265
|
+
- spec/dummy/Rakefile
|
266
|
+
- spec/dummy/app/assets/config/manifest.js
|
267
|
+
- spec/dummy/app/assets/javascripts/cable.js
|
268
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
269
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
270
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
271
|
+
- spec/dummy/app/controllers/application_controller.rb
|
272
|
+
- spec/dummy/app/helpers/application_helper.rb
|
273
|
+
- spec/dummy/app/jobs/application_job.rb
|
274
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
275
|
+
- spec/dummy/app/models/application_record.rb
|
276
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
277
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
278
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
279
|
+
- spec/dummy/bin/bundle
|
280
|
+
- spec/dummy/bin/rails
|
281
|
+
- spec/dummy/bin/rake
|
282
|
+
- spec/dummy/bin/setup
|
283
|
+
- spec/dummy/bin/update
|
284
|
+
- spec/dummy/config.ru
|
285
|
+
- spec/dummy/config/application.rb
|
286
|
+
- spec/dummy/config/boot.rb
|
287
|
+
- spec/dummy/config/cable.yml
|
288
|
+
- spec/dummy/config/credentials.yml.enc
|
289
|
+
- spec/dummy/config/database.yml
|
290
|
+
- spec/dummy/config/environment.rb
|
291
|
+
- spec/dummy/config/environments/development.rb
|
292
|
+
- spec/dummy/config/environments/production.rb
|
293
|
+
- spec/dummy/config/environments/test.rb
|
294
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
295
|
+
- spec/dummy/config/initializers/assets.rb
|
296
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
297
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
298
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
299
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
300
|
+
- spec/dummy/config/initializers/inflections.rb
|
301
|
+
- spec/dummy/config/initializers/mime_types.rb
|
302
|
+
- spec/dummy/config/initializers/spree.rb
|
303
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
304
|
+
- spec/dummy/config/locales/en.yml
|
305
|
+
- spec/dummy/config/master.key
|
306
|
+
- spec/dummy/config/routes.rb
|
307
|
+
- spec/dummy/config/storage.yml
|
308
|
+
- spec/dummy/db/schema.rb
|
309
|
+
- spec/dummy/db/seeds.rb
|
310
|
+
- spec/dummy/public/404.html
|
311
|
+
- spec/dummy/public/422.html
|
312
|
+
- spec/dummy/public/500.html
|
313
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
314
|
+
- spec/dummy/public/apple-touch-icon.png
|
315
|
+
- spec/dummy/public/favicon.ico
|
316
|
+
- spec/dummy/vendor/assets/javascripts/spree/backend/all.js
|
317
|
+
- spec/dummy/vendor/assets/javascripts/spree/frontend/all.js
|
318
|
+
- spec/dummy/vendor/assets/stylesheets/spree/backend/all.css
|
319
|
+
- spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css
|
320
|
+
- spec/factories/payment_methods.rb
|
321
|
+
- spec/factories/payments.rb
|
322
|
+
- spec/factories/spree/six_saferpay_payments.rb
|
323
|
+
- spec/models/spree/six_saferpay_payment_spec.rb
|
324
|
+
- spec/rails_helper.rb
|
325
|
+
- spec/services/spree/solidus_six_saferpay/assert_payment_page_spec.rb
|
326
|
+
- spec/services/spree/solidus_six_saferpay/authorize_payment_spec.rb
|
327
|
+
- spec/services/spree/solidus_six_saferpay/authorize_transaction_spec.rb
|
328
|
+
- spec/services/spree/solidus_six_saferpay/initialize_payment_page_spec.rb
|
329
|
+
- spec/services/spree/solidus_six_saferpay/initialize_payment_spec.rb
|
330
|
+
- spec/services/spree/solidus_six_saferpay/initialize_transaction_spec.rb
|
331
|
+
- spec/services/spree/solidus_six_saferpay/inquire_payment_page_payment_spec.rb
|
332
|
+
- spec/services/spree/solidus_six_saferpay/inquire_payment_spec.rb
|
333
|
+
- spec/services/spree/solidus_six_saferpay/inquire_transaction_payment_spec.rb
|
334
|
+
- spec/services/spree/solidus_six_saferpay/payment_validator_spec.rb
|
335
|
+
- spec/services/spree/solidus_six_saferpay/process_authorized_payment_spec.rb
|
336
|
+
- spec/services/spree/solidus_six_saferpay/process_payment_page_payment_spec.rb
|
337
|
+
- spec/services/spree/solidus_six_saferpay/process_transaction_payment_spec.rb
|
338
|
+
- spec/solidus_six_saferpay/configuration_spec.rb
|
339
|
+
- spec/solidus_six_saferpay/error_handler_spec.rb
|
340
|
+
- spec/solidus_six_saferpay/gateway_response_spec.rb
|
341
|
+
- spec/solidus_six_saferpay/gateway_spec.rb
|
342
|
+
- spec/solidus_six_saferpay/payment_page_gateway_spec.rb
|
343
|
+
- spec/solidus_six_saferpay/transaction_gateway_spec.rb
|
344
|
+
- spec/spec_helper.rb
|
345
|
+
- spec/support/route_access.rb
|
346
|
+
- spec/support/uses_payment_page_gateway.rb
|
347
|
+
- spec/support/uses_transaction_gateway.rb
|
348
|
+
homepage: https://github.com/fadendaten/solidus_six_saferpay
|
256
349
|
licenses:
|
257
350
|
- MIT
|
258
|
-
metadata:
|
351
|
+
metadata:
|
352
|
+
homepage_uri: https://github.com/fadendaten/solidus_six_saferpay
|
353
|
+
source_code_uri: https://github.com/fadendaten/solidus_six_saferpay
|
259
354
|
post_install_message:
|
260
355
|
rdoc_options: []
|
261
356
|
require_paths:
|
262
357
|
- lib
|
263
358
|
required_ruby_version: !ruby/object:Gem::Requirement
|
264
359
|
requirements:
|
265
|
-
- - "
|
360
|
+
- - "~>"
|
266
361
|
- !ruby/object:Gem::Version
|
267
|
-
version: '
|
362
|
+
version: '2.4'
|
268
363
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
364
|
requirements:
|
270
365
|
- - ">="
|
@@ -276,4 +371,92 @@ rubygems_version: 2.7.6
|
|
276
371
|
signing_key:
|
277
372
|
specification_version: 4
|
278
373
|
summary: Saferpay Payment Page and Transaction payment methods for Solidus
|
279
|
-
test_files:
|
374
|
+
test_files:
|
375
|
+
- spec/controllers/spree/solidus_six_saferpay/checkout_controller_spec.rb
|
376
|
+
- spec/controllers/spree/solidus_six_saferpay/payment_page/checkout_controller_spec.rb
|
377
|
+
- spec/controllers/spree/solidus_six_saferpay/transaction/checkout_controller_spec.rb
|
378
|
+
- spec/dummy/.ruby-version
|
379
|
+
- spec/dummy/README.md
|
380
|
+
- spec/dummy/Rakefile
|
381
|
+
- spec/dummy/app/assets/config/manifest.js
|
382
|
+
- spec/dummy/app/assets/javascripts/cable.js
|
383
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
384
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
385
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
386
|
+
- spec/dummy/app/controllers/application_controller.rb
|
387
|
+
- spec/dummy/app/helpers/application_helper.rb
|
388
|
+
- spec/dummy/app/jobs/application_job.rb
|
389
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
390
|
+
- spec/dummy/app/models/application_record.rb
|
391
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
392
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
393
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
394
|
+
- spec/dummy/bin/bundle
|
395
|
+
- spec/dummy/bin/rails
|
396
|
+
- spec/dummy/bin/rake
|
397
|
+
- spec/dummy/bin/setup
|
398
|
+
- spec/dummy/bin/update
|
399
|
+
- spec/dummy/config.ru
|
400
|
+
- spec/dummy/config/application.rb
|
401
|
+
- spec/dummy/config/boot.rb
|
402
|
+
- spec/dummy/config/cable.yml
|
403
|
+
- spec/dummy/config/credentials.yml.enc
|
404
|
+
- spec/dummy/config/database.yml
|
405
|
+
- spec/dummy/config/environment.rb
|
406
|
+
- spec/dummy/config/environments/development.rb
|
407
|
+
- spec/dummy/config/environments/production.rb
|
408
|
+
- spec/dummy/config/environments/test.rb
|
409
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
410
|
+
- spec/dummy/config/initializers/assets.rb
|
411
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
412
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
413
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
414
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
415
|
+
- spec/dummy/config/initializers/inflections.rb
|
416
|
+
- spec/dummy/config/initializers/mime_types.rb
|
417
|
+
- spec/dummy/config/initializers/spree.rb
|
418
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
419
|
+
- spec/dummy/config/locales/en.yml
|
420
|
+
- spec/dummy/config/master.key
|
421
|
+
- spec/dummy/config/routes.rb
|
422
|
+
- spec/dummy/config/storage.yml
|
423
|
+
- spec/dummy/db/schema.rb
|
424
|
+
- spec/dummy/db/seeds.rb
|
425
|
+
- spec/dummy/public/404.html
|
426
|
+
- spec/dummy/public/422.html
|
427
|
+
- spec/dummy/public/500.html
|
428
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
429
|
+
- spec/dummy/public/apple-touch-icon.png
|
430
|
+
- spec/dummy/public/favicon.ico
|
431
|
+
- spec/dummy/vendor/assets/javascripts/spree/backend/all.js
|
432
|
+
- spec/dummy/vendor/assets/javascripts/spree/frontend/all.js
|
433
|
+
- spec/dummy/vendor/assets/stylesheets/spree/backend/all.css
|
434
|
+
- spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css
|
435
|
+
- spec/factories/payment_methods.rb
|
436
|
+
- spec/factories/payments.rb
|
437
|
+
- spec/factories/spree/six_saferpay_payments.rb
|
438
|
+
- spec/models/spree/six_saferpay_payment_spec.rb
|
439
|
+
- spec/rails_helper.rb
|
440
|
+
- spec/services/spree/solidus_six_saferpay/assert_payment_page_spec.rb
|
441
|
+
- spec/services/spree/solidus_six_saferpay/authorize_payment_spec.rb
|
442
|
+
- spec/services/spree/solidus_six_saferpay/authorize_transaction_spec.rb
|
443
|
+
- spec/services/spree/solidus_six_saferpay/initialize_payment_page_spec.rb
|
444
|
+
- spec/services/spree/solidus_six_saferpay/initialize_payment_spec.rb
|
445
|
+
- spec/services/spree/solidus_six_saferpay/initialize_transaction_spec.rb
|
446
|
+
- spec/services/spree/solidus_six_saferpay/inquire_payment_page_payment_spec.rb
|
447
|
+
- spec/services/spree/solidus_six_saferpay/inquire_payment_spec.rb
|
448
|
+
- spec/services/spree/solidus_six_saferpay/inquire_transaction_payment_spec.rb
|
449
|
+
- spec/services/spree/solidus_six_saferpay/payment_validator_spec.rb
|
450
|
+
- spec/services/spree/solidus_six_saferpay/process_authorized_payment_spec.rb
|
451
|
+
- spec/services/spree/solidus_six_saferpay/process_payment_page_payment_spec.rb
|
452
|
+
- spec/services/spree/solidus_six_saferpay/process_transaction_payment_spec.rb
|
453
|
+
- spec/solidus_six_saferpay/configuration_spec.rb
|
454
|
+
- spec/solidus_six_saferpay/error_handler_spec.rb
|
455
|
+
- spec/solidus_six_saferpay/gateway_response_spec.rb
|
456
|
+
- spec/solidus_six_saferpay/gateway_spec.rb
|
457
|
+
- spec/solidus_six_saferpay/payment_page_gateway_spec.rb
|
458
|
+
- spec/solidus_six_saferpay/transaction_gateway_spec.rb
|
459
|
+
- spec/spec_helper.rb
|
460
|
+
- spec/support/route_access.rb
|
461
|
+
- spec/support/uses_payment_page_gateway.rb
|
462
|
+
- spec/support/uses_transaction_gateway.rb
|