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 +4 -4
- data/app/controllers/spree/admin/{payments_controller_decorator.rb → checkout_controller_decorator.rb} +0 -0
- data/app/models/spree/gateway/{mollie_bank_transfer.rb → mollie.rb} +1 -1
- data/lib/spree_mollie/engine.rb +1 -10
- data/spree_mollie-0.0.2.gem +0 -0
- data/spree_mollie.gemspec +1 -1
- metadata +4 -12
- data/app/models/spree/gateway/mollie_belflus_direct_net.rb +0 -43
- data/app/models/spree/gateway/mollie_bitcoin.rb +0 -43
- data/app/models/spree/gateway/mollie_creditcard.rb +0 -43
- data/app/models/spree/gateway/mollie_ideal.rb +0 -43
- data/app/models/spree/gateway/mollie_kbccbc_payment_button.rb +0 -43
- data/app/models/spree/gateway/mollie_pay_pal.rb +0 -43
- data/app/models/spree/gateway/mollie_paysafecard.rb +0 -43
- data/app/models/spree/gateway/mollie_sepa_direct_debit.rb +0 -43
- data/app/models/spree/gateway/mollie_sofort_banking.rb +0 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efbc606c78aac18e13fa7f72ca9becc99901b260
|
4
|
+
data.tar.gz: 32ee9b57fe3696ec9a5dfa8260ac2b01d48cac4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb1010ecb0f543cbb850a512572e9e24adfc884dba4185287c84fbdff292351ba939488d585b8281c75d321af40b8ddb41153524c658726144adf7e1125bfd5e
|
7
|
+
data.tar.gz: e6d0a1ee7398bc3f2baa38b0c9b03508dfcff9ab678de2c11f2538491eeef753ea246d29ab52d18b7f521da7c021874967c7652f383cae82d7f85b5e360cbab0
|
File without changes
|
data/lib/spree_mollie/engine.rb
CHANGED
@@ -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::
|
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
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.
|
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/
|
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
|