0

I'm currently building an webshop that's based in The Netherlands.

iDEAL is the most used online payment platform in The Netherlands and I'm trying to add this payment platform to my app. The only problem is that all current gems that support iDEAL (providers) are a couple of years old and don't work anymore with the most recent version of Spree

I've started doing research on how to add this to my app:

I've tried asking the developers of the official Ruby on Rails Mollie gem to help me create an version for Spree. Even though they couldn't help me create an version for spree, they did try to send me into the right direction.

Advising me to read the documentation and reading through the code of the following gems and use them as an example

I've looked at al the gems, read through the code, read the documentation and even tried this tutorial.

My attempts: When I try to install the most recent gem (after bundle install) with the following code bundle exec rails g spree_mollie:install

I get the following error:

Running via Spring preloader in process 14008
      append  vendor/assets/javascripts/spree/frontend/all.js
      append  vendor/assets/javascripts/spree/backend/all.js
      insert  vendor/assets/stylesheets/spree/frontend/all.css
      insert  vendor/assets/stylesheets/spree/backend/all.css
         run  bundle exec rake railties:install:migrations FROM=spree_mollie from "."
rake aborted!
Don't know how to build task 'railties:install:migrations' (see --tasks)
/usr/local/rvm/gems/ruby-2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
Would you like to run the migrations now? [Y/n] y
         run  bundle exec rake db:migrate from "."
rake aborted!
Don't know how to build task 'db:migrate' (see --tasks)
/usr/local/rvm/gems/ruby-2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)

I've tried looking for the cause of the problem, but couldn't find an answer it appears the rake command rake db:migrate can't be found nor can ailties:install:migrations

which I think causes the following error:

Sprockets::FileNotFound in Spree::Admin::PaymentMethods#index

as it can't seem to find: couldn't find file 'spree/backend/spree_mollie' with type 'text/css'

citing that *= require spree/backend/spree_mollie is the cause of the problem

error:

*= require_self *= require_tree . *= require spree/backend/spree_mollie */

I'm desperately trying to get the gem to work. I've tried creating my own gem (build from the others), but the results are the same.

GOAL: I'm trying to get add Mollie to my Spree app

PROBLEM: all current gems are outdated.

4

2 回答 2

1

我在 Mollie 工作,负责我们的 Spree Commerce 模块。几个月前,我们推出了官方 Spree Mollie Gateway:https ://github.com/mollie/spree-mollie-gateway

于 2018-07-18T06:37:11.167 回答
0

我找到了解决方案,我正在运行 Rails 4.2.6、Ruby 2.3.0 和 Spree 3.1.12

我使用了Spree Mollie gem(2 岁) gem 并将Ruby on Rails Mollie gem 降级到所需的版本。创建 Mollie 帐户后,我插入了test_api_keyMollie 并开始工作

于 2017-12-13T16:22:22.377 回答