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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 646e1fbadb151466fecefc6da6335d9d4b1fe885
4
- data.tar.gz: b81ef285173dfff08dd62184f27d07bb47a41b11
3
+ metadata.gz: 53836c5ccfabe90ad80364a67e8b271da7ba9a48
4
+ data.tar.gz: 85e37831f6b094e33ce35eb158322440bc5cf391
5
5
  SHA512:
6
- metadata.gz: 01a361e73d6095a3e7960e2557631c0ba724fbd3ccc1a2830a0b4b1df251ceacb6e02fcb9fdcbcef3727951ee34587a4e89491f379af4b8cf6f7089ae1eb48ee
7
- data.tar.gz: d5bebd37a4ad607d9a52dbcc007115eebf678eb3ef7b7aec11c44d5f88043c6b9a53a525ec4dab64ccd410a63fcba1a75cedc63227e5db405c9f3413ab78b3fb
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
- :method => Mollie::API::Object::Method::IDEAL,
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.getPaymentUrl
42
+ redirect_to payment.payment_url
43
43
  end
44
44
  rescue Mollie::API::Exception => e
45
45
  flash[:error] = e.message
@@ -16,13 +16,10 @@ module Spree
16
16
  end
17
17
 
18
18
  def provider
19
- unless @mollie
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
@@ -0,0 +1,9 @@
1
+ <fieldset>
2
+ <!-- div class="well clearfix">
3
+ <p class="field">
4
+ <%#= select_tag "order[payments_attributes][][issuer_id]",
5
+ options_for_select(@banks || []),
6
+ class: 'form-control required' %>
7
+ </p>
8
+ </div -->
9
+ </fieldset>
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.4'
5
+ s.version = '0.0.5'
6
6
  s.summary = 'spree_mollie'
7
7
  s.description = 'spree_mollie'
8
8
  s.required_ruby_version = '>= 2.1.0'
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
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-29 00:00:00.000000000 Z
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/admin/mollie_return_controller.rb
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: