Brandon White
05/08/2023, 11:15 PMtype' for nil:NilClass payment_method_types: [payment.source.stripe_payment_method.type]
Which I assume is because I wasn't able to enter payment info.
solidus_stripe (5.0.0.rc.2) app/models/solidus_stripe/payment_intent.rb:117:in `block in create_stripe_intent'
stripe (8.3.0) lib/stripe/stripe_client.rb:206:in `request'
solidus_stripe (5.0.0.rc.2) app/models/solidus_stripe/gateway.rb:194:in `request'
solidus_stripe (5.0.0.rc.2) app/models/solidus_stripe/payment_intent.rb:109:in `create_stripe_intent'
solidus_stripe (5.0.0.rc.2) app/models/solidus_stripe/payment_intent.rb:20:in `block in create_for_payment'
<internal:kernel>:90:in `tap'
solidus_stripe (5.0.0.rc.2) app/models/solidus_stripe/payment_intent.rb:20:in `create_for_payment'
solidus_stripe (5.0.0.rc.2) app/models/solidus_stripe/payment_intent.rb:10:in `prepare_for_payment'
solidus_stripe (5.0.0.rc.2) app/models/solidus_stripe/gateway.rb:111:in `purchase'
solidus_core (3.3.1) app/models/spree/payment_method.rb:41:in `purchase'
solidus_core (3.3.1) app/models/spree/payment/processing.rb:59:in `block in purchase!'
solidus_core (3.3.1) app/models/spree/payment/processing.rb:213:in `protect_from_connection_error'
solidus_core (3.3.1) app/models/spree/payment/processing.rb:58:in `purchase!'
solidus_core (3.3.1) app/models/spree/payment/processing.rb:29:in `process!'
solidus_core (3.3.1) app/models/spree/order/payments.rb:47:in `public_send'
solidus_core (3.3.1) app/models/spree/order/payments.rb:47:in `block in process_payments_with'
solidus_core (3.3.1) app/models/spree/order/payments.rb:44:in `each'
solidus_core (3.3.1) app/models/spree/order/payments.rb:44:in `process_payments_with'
solidus_core (3.3.1) app/models/spree/order/payments.rb:23:in `process_payments!'
solidus_core (3.3.1) app/models/spree/order.rb:743:in `process_payments_before_complete'
I'm having difficulty tracking down the problem since there is no console errors...loic
05/09/2023, 9:36 AMkennyadsl
Brandon White
05/09/2023, 2:31 PMBrandon White
05/12/2023, 3:46 PMBrandon White
05/12/2023, 4:26 PMMissing partial checkouts/payment/_stripe
Brandon White
05/12/2023, 4:35 PMactionview (7.0.4.2) lib/action_view/path_set.rb:49:in `find'
actionview (7.0.4.2) lib/action_view/lookup_context.rb:127:in `find'
actionview (7.0.4.2) lib/action_view/renderer/partial_renderer.rb:263:in `find_template'
actionview (7.0.4.2) lib/action_view/renderer/partial_renderer.rb:231:in `render'
actionview (7.0.4.2) lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
actionview (7.0.4.2) lib/action_view/renderer/renderer.rb:53:in `render_partial'
actionview (7.0.4.2) lib/action_view/helpers/rendering_helper.rb:44:in `render'
app/views/checkouts/steps/_payment_step.html.erb:52
app/views/checkouts/steps/_payment_step.html.erb:35:in `each'
app/views/checkouts/steps/_payment_step.html.erb:35:in `with_index'
app/views/checkouts/steps/_payment_step.html.erb:35
actionview (7.0.4.2) lib/action_view/base.rb:244:in `public_send'
actionview (7.0.4.2) lib/action_view/base.rb:244:in `_run'
actionview (7.0.4.2) lib/action_view/template.rb:157:in `block in render'
activesupport (7.0.4.2) lib/active_support/notifications.rb:208:in `instrument'
actionview (7.0.4.2) lib/action_view/template.rb:361:in `instrument_render_template'
actionview (7.0.4.2) lib/action_view/template.rb:155:in `render'
actionview (7.0.4.2) lib/action_view/renderer/partial_renderer.rb:251:in `block in render_partial_template'
activesupport (7.0.4.2) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.0.4.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (7.0.4.2) lib/active_support/notifications.rb:206:in `instrument'
actionview (7.0.4.2) lib/action_view/renderer/partial_renderer.rb:246:in `render_partial_template'
actionview (7.0.4.2) lib/action_view/renderer/partial_renderer.rb:237:in `render'
actionview (7.0.4.2) lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
actionview (7.0.4.2) lib/action_view/renderer/renderer.rb:53:in `render_partial'
actionview (7.0.4.2) lib/action_view/helpers/rendering_helper.rb:44:in `render'
app/views/checkouts/_checkout_step.html.erb:9
kennyadsl
bin/rails generate solidus_stripe:install
as suggested in the README?Brandon White
05/12/2023, 4:59 PMBrandon White
05/21/2023, 3:14 PMBrandon White
05/21/2023, 3:14 PMBrandon White
05/21/2023, 3:19 PMkennyadsl
Brandon White
05/22/2023, 12:36 PMBrandon White
05/22/2023, 12:37 PMBrandon White
05/22/2023, 12:58 PMkennyadsl
Brandon White
05/22/2023, 1:01 PMkennyadsl
Brandon White
05/22/2023, 3:02 PMkennyadsl
Brandon White
05/22/2023, 3:43 PMBrandon White
05/26/2023, 12:02 AM@hotwired/stimulus
. So I needed to run ./bin/rails stimulus:manifest:update
in order to add the stripe controllers, and then compile my assets. I think the reason this is not needed when using importmaps is because it uses eagerLoadControllersFrom
while esbuild requires each controller to be imported individually.
https://stimulus.hotwired.dev/handbook/installing#using-other-build-systems