spree_mollie 0.0.4 → 0.0.5
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/checkout_controller_decorator.rb +2 -2
- data/app/controllers/spree/{admin/mollie_return_controller.rb → mollie_return_controller.rb} +0 -0
- data/app/models/spree/gateway/mollie.rb +2 -5
- data/app/views/spree/checkout/payment/_mollie.html.erb +9 -0
- data/spree_mollie-0.0.4.gem +0 -0
- data/spree_mollie.gemspec +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53836c5ccfabe90ad80364a67e8b271da7ba9a48
|
4
|
+
data.tar.gz: 85e37831f6b094e33ce35eb158322440bc5cf391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430a41dbe247b9b7a57c297fce79762ef0481f0821da78a3881647b8483492fc0428fb8f505bbc23a0f90867c9736bfd4bd3b6c08c83544a20185386f1a6ffa4
|
7
|
+
data.tar.gz: 909addd84de6be49c4ecf60db387a2b3954bb82017f2ad58cdc69e3358a5f2983f9aab426b65de636fc0b7dcf6bd0b290aacc60d4de7087fff3195774c198a38
|
@@ -26,7 +26,7 @@ Spree::CheckoutController.class_eval do
|
|
26
26
|
:metadata => {
|
27
27
|
:order => @order.id
|
28
28
|
},
|
29
|
-
|
29
|
+
|
30
30
|
:issuer => params[:order][:payments_attributes].first.to_hash[:issuer_id]})
|
31
31
|
|
32
32
|
spree_payment = @order.payments.build(
|
@@ -39,7 +39,7 @@ Spree::CheckoutController.class_eval do
|
|
39
39
|
spree_payment.pend!
|
40
40
|
|
41
41
|
puts payment.inspect
|
42
|
-
redirect_to payment.
|
42
|
+
redirect_to payment.payment_url
|
43
43
|
end
|
44
44
|
rescue Mollie::API::Exception => e
|
45
45
|
flash[:error] = e.message
|
data/app/controllers/spree/{admin/mollie_return_controller.rb → mollie_return_controller.rb}
RENAMED
File without changes
|
@@ -16,13 +16,10 @@ module Spree
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def provider
|
19
|
-
|
20
|
-
@mollie = ::Mollie::API::Client.new(preferred_partner_id)
|
21
|
-
#@mollie.setApiKey preferred_partner_id
|
22
|
-
end
|
23
|
-
return @mollie
|
19
|
+
@mollie ||= ::Mollie::API::Client.new(preferred_partner_id)
|
24
20
|
end
|
25
21
|
|
22
|
+
#check if needed otherwise remove it
|
26
23
|
def purchase(amount, express_checkout, gateway_options={})
|
27
24
|
puts amount.inspect
|
28
25
|
puts express_checkout.inspect
|
Binary file
|
data/spree_mollie.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rostislav.korin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -181,8 +181,9 @@ files:
|
|
181
181
|
- app/assets/stylesheets/spree/backend/spree_mollie.css
|
182
182
|
- app/assets/stylesheets/spree/frontend/spree_mollie.css
|
183
183
|
- app/controllers/spree/admin/checkout_controller_decorator.rb
|
184
|
-
- app/controllers/spree/
|
184
|
+
- app/controllers/spree/mollie_return_controller.rb
|
185
185
|
- app/models/spree/gateway/mollie.rb
|
186
|
+
- app/views/spree/checkout/payment/_mollie.html.erb
|
186
187
|
- bin/rails
|
187
188
|
- config/locales/en.yml
|
188
189
|
- config/routes.rb
|
@@ -194,6 +195,7 @@ files:
|
|
194
195
|
- spree_mollie-0.0.1.gem
|
195
196
|
- spree_mollie-0.0.2.gem
|
196
197
|
- spree_mollie-0.0.3.gem
|
198
|
+
- spree_mollie-0.0.4.gem
|
197
199
|
- spree_mollie.gemspec
|
198
200
|
homepage: http://www.spreecommerce.com
|
199
201
|
licenses:
|