solidusio-contrib / solidus_affirm_v2 Goto Github PK
View Code? Open in Web Editor NEWSolidus integration with Affirm financing payments using the new Transaction API
License: BSD 3-Clause "New" or "Revised" License
Solidus integration with Affirm financing payments using the new Transaction API
License: BSD 3-Clause "New" or "Revised" License
I upgraded my rails app from 6.1 to 7.0 and now I am getting this error. I edited the engine.rb file locally using bundle open command and it worked fine. This is my edited file:
`# frozen_string_literal: true
require 'spree/core'
require 'solidus_affirm_v2'
module SolidusAffirmV2
class Engine < Rails::Engine
include SolidusSupport::EngineExtensions
isolate_namespace ::Spree
engine_name 'solidus_affirm_v2'
config.autoload_once_paths << "#{root}/app/helpers"
# use rspec for tests
config.generators do |g|
g.test_framework :rspec
end
initializer "register_solidus_affirm_v2_payment_method", after: "spree.register.payment_methods" do |app|
config.to_prepare do
app.config.spree.payment_methods << SolidusAffirmV2::PaymentMethod
end
end
initializer "register_solidus_affirm_v2_configuration", before: :load_config_initializers do |_app|
config.to_prepare do
SolidusAffirmV2::Config = SolidusAffirmV2::Configuration.new
end
end
initializer 'register_solidus_affirm_v2_helper_action_controller' do |_app|
ActiveSupport.on_load :action_controller do |klass|
next if klass.name == "ActionController::API"
helper SolidusAffirmV2::AffirmHelper
end
end
end
end
`
Traceback (most recent call last): 50: from bin/rails:4:in
require' 48: from /home/dev/.rvm/gems/ruby-2.7.8/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require'<main>' 46: from /home/dev/.rvm/gems/ruby-2.7.8/gems/railties-7.0.2/lib/rails/command.rb:48:in
invoke'perform' 44: from /home/dev/.rvm/gems/ruby-2.7.8/gems/thor-1.3.0/lib/thor.rb:527:in
dispatch'invoke_command' 42: from /home/dev/.rvm/gems/ruby-2.7.8/gems/thor-1.3.0/lib/thor/command.rb:28:in
run'perform' 40: from /home/dev/.rvm/gems/ruby-2.7.8/gems/railties-7.0.2/lib/rails/commands/server/server_command.rb:134:in
tap'block in perform' 38: from /home/dev/.rvm/gems/ruby-2.7.8/gems/railties-7.0.2/lib/rails/commands/server/server_command.rb:36:in
start'log_to_stdout' 36: from /home/dev/.rvm/gems/ruby-2.7.8/gems/rack-2.2.8/lib/rack/server.rb:422:in
wrapped_app'app' 34: from /home/dev/.rvm/gems/ruby-2.7.8/gems/rack-2.2.8/lib/rack/server.rb:349:in
build_app_and_options_from_config'parse_file' 32: from /home/dev/.rvm/gems/ruby-2.7.8/gems/rack-2.2.8/lib/rack/builder.rb:105:in
load_file'new_from_string' 30: from /home/dev/.rvm/gems/ruby-2.7.8/gems/rack-2.2.8/lib/rack/builder.rb:116:in
eval'block in <main>' 28: from config.ru:3:in
require_relative'<main>' 26: from /home/dev/.rvm/gems/ruby-2.7.8/gems/railties-7.0.2/lib/rails/application.rb:372:in
initialize!'run_initializers' 24: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:205:in
tsort_each'tsort_each' 22: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:347:in
each_strongly_connected_component'call' 20: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:347:in
each'block in each_strongly_connected_component' 18: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:415:in
each_strongly_connected_component_from'call' 16: from /home/dev/.rvm/gems/ruby-2.7.8/gems/railties-7.0.2/lib/rails/initializable.rb:50:in
tsort_each_child'each' 14: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:421:in
block in each_strongly_connected_component_from'each_strongly_connected_component_from' 12: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:415:in
call'tsort_each_child' 10: from /home/dev/.rvm/gems/ruby-2.7.8/gems/railties-7.0.2/lib/rails/initializable.rb:50:in
each'block in each_strongly_connected_component_from' 8: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:431:in
each_strongly_connected_component_from'block (2 levels) in each_strongly_connected_component_from' 6: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:422:in
block (2 levels) in each_strongly_connected_component_from'block (2 levels) in each_strongly_connected_component' 4: from /home/dev/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/tsort.rb:228:in
block in tsort_each'block in run_initializers' 2: from /home/dev/.rvm/gems/ruby-2.7.8/gems/railties-7.0.2/lib/rails/initializable.rb:32:in
run'instance_exec' /home/dev/.rvm/gems/ruby-2.7.8/bundler/gems/solidus_affirm_v2-e14eac886ea2/lib/solidus_affirm_v2/engine.rb:20:in
block in class:Engine': uninitialized constant SolidusAffirmV2::PaymentMethod (NameError)`Ideally this extension is a drop-in replacement for solidus_affirm, removing solidus_affirm from existing stores is causing some issues with existing orders etc.
This issue probably needs to be split up into a couple of smaller issues and pull requests.
Update this extension so that it works with Solidus 3.0 by making sure the specs pass.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.