spree_mollie 0.0.2 → 0.0.3

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: 9a67d84a1482110f3790ed12b54100e368bfc819
4
- data.tar.gz: 521f9af2c1b66cb11239545ff4d95a08da715168
3
+ metadata.gz: efbc606c78aac18e13fa7f72ca9becc99901b260
4
+ data.tar.gz: 32ee9b57fe3696ec9a5dfa8260ac2b01d48cac4e
5
5
  SHA512:
6
- metadata.gz: 631573ea594e4226f1f81cfe604f2623431cb0fa9560eb16e02154710937cf67fd3ba1a5fe81d24418f619f6e0180452d3e55e57a35c6be7d3d2f980c46ea02f
7
- data.tar.gz: 458cc1f0d45a6429ca219860a411b4e27ea6037cf9360c7a6147f523117651af1af4e8b6fd6ed343f208277a92d594b501c8ef0c9527891f6d0614d9ef188e85
6
+ metadata.gz: fb1010ecb0f543cbb850a512572e9e24adfc884dba4185287c84fbdff292351ba939488d585b8281c75d321af40b8ddb41153524c658726144adf7e1125bfd5e
7
+ data.tar.gz: e6d0a1ee7398bc3f2baa38b0c9b03508dfcff9ab678de2c11f2538491eeef753ea246d29ab52d18b7f521da7c021874967c7652f383cae82d7f85b5e360cbab0
@@ -1,6 +1,6 @@
1
1
  require "mollie/api/client"
2
2
  module Spree
3
- class Gateway::MollieBankTransfer < Gateway
3
+ class Gateway::Mollie < Gateway
4
4
  preference :partner_id, :string
5
5
 
6
6
  def provider_class
@@ -20,16 +20,7 @@ module SpreeMollie
20
20
  config.to_prepare &method(:activate).to_proc
21
21
 
22
22
  initializer "spree.mollie.payment_methods", :after => "spree.register.payment_methods" do |app|
23
- app.config.spree.payment_methods << Spree::Gateway::MollieCreditcard
24
- app.config.spree.payment_methods << Spree::Gateway::MollieSOFORTBanking
25
- app.config.spree.payment_methods << Spree::Gateway::MollieIDEAL
26
- app.config.spree.payment_methods << Spree::Gateway::MollieBankTransfer
27
- app.config.spree.payment_methods << Spree::Gateway::MollieSepaDirectDebit
28
- app.config.spree.payment_methods << Spree::Gateway::MolliePayPal
29
- app.config.spree.payment_methods << Spree::Gateway::MollieBitcoin
30
- app.config.spree.payment_methods << Spree::Gateway::MolliePaysafecard
31
- app.config.spree.payment_methods << Spree::Gateway::MollieKbccbcPaymentButton
32
- app.config.spree.payment_methods << Spree::Gateway::MollieBelflusDirectNet
23
+ app.config.spree.payment_methods << Spree::Gateway::Mollie
33
24
  end
34
25
  end
35
26
  end
Binary file
data/spree_mollie.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_mollie'
5
- s.version = '0.0.2'
5
+ s.version = '0.0.3'
6
6
  s.summary = 'spree_mollie'
7
7
  s.description = 'spree_mollie'
8
8
  s.required_ruby_version = '>= 2.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_mollie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rostislav.korin
@@ -180,18 +180,9 @@ files:
180
180
  - app/assets/javascripts/spree/frontend/spree_mollie.js
181
181
  - app/assets/stylesheets/spree/backend/spree_mollie.css
182
182
  - app/assets/stylesheets/spree/frontend/spree_mollie.css
183
+ - app/controllers/spree/admin/checkout_controller_decorator.rb
183
184
  - app/controllers/spree/admin/mollie_return_controller.rb
184
- - app/controllers/spree/admin/payments_controller_decorator.rb
185
- - app/models/spree/gateway/mollie_bank_transfer.rb
186
- - app/models/spree/gateway/mollie_belflus_direct_net.rb
187
- - app/models/spree/gateway/mollie_bitcoin.rb
188
- - app/models/spree/gateway/mollie_creditcard.rb
189
- - app/models/spree/gateway/mollie_ideal.rb
190
- - app/models/spree/gateway/mollie_kbccbc_payment_button.rb
191
- - app/models/spree/gateway/mollie_pay_pal.rb
192
- - app/models/spree/gateway/mollie_paysafecard.rb
193
- - app/models/spree/gateway/mollie_sepa_direct_debit.rb
194
- - app/models/spree/gateway/mollie_sofort_banking.rb
185
+ - app/models/spree/gateway/mollie.rb
195
186
  - bin/rails
196
187
  - config/locales/en.yml
197
188
  - config/routes.rb
@@ -201,6 +192,7 @@ files:
201
192
  - lib/spree_mollie/factories.rb
202
193
  - spec/spec_helper.rb
203
194
  - spree_mollie-0.0.1.gem
195
+ - spree_mollie-0.0.2.gem
204
196
  - spree_mollie.gemspec
205
197
  homepage: http://www.spreecommerce.com
206
198
  licenses:
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MollieBelflusDirectNet < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::BELFIUS,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MollieBitcoin < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::BITCOIN,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MollieCreditcard < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::CREDITCARD,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MollieIDEAL < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::IDEAL,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MollieKbccbcPaymentButton < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::KBC ,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MolliePayPal < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::PAYPAL ,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MolliePaysafecard < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::PAYSAFECARD,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MollieSepaDirectDebit < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::DIRECTDEBIT,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end
@@ -1,43 +0,0 @@
1
- require "mollie/api/client"
2
- module Spree
3
- class Gateway::MollieSOFORTBanking < Gateway
4
- preference :partner_id, :string
5
-
6
- def provider_class
7
- ::Mollie::API::Client
8
- end
9
-
10
- def payment_source_class
11
- nil
12
- end
13
-
14
- def method_type
15
- "mollie"
16
- end
17
-
18
- def provider
19
- unless @mollie
20
- @mollie = ::Mollie::API::Client.new
21
- @mollie.setApiKey preferred_partner_id
22
- end
23
- return @mollie
24
- end
25
-
26
- def purchase(amount, express_checkout, gateway_options={})
27
- puts amount.inspect
28
- puts express_checkout.inspect
29
- puts gateway_options.inspect
30
-
31
- provider.payment.create(
32
- amount: amount,
33
- description: "TODO something here",
34
- method: Mollie::API::Object::Method::SOFORT,
35
- redirectUrl: "TODO redirect url here"
36
- )
37
- end
38
-
39
- def cancel response
40
-
41
- end
42
- end
43
- end