it seems that when i go to `checkout_path`, it goe...
# support
e
it seems that when i go to
checkout_path
, it goes all the way through to the summary step, but it does show the payment tab at the top - and it does show a positive total amount. when i select the payment tab, i am able to pay, then it goes back to the confirm step, and then i can complete the checkout flow. why would my checkout flow be passing through the payment step when a payment is required?
i suspect it is related that these specs fail
Copy code
1) SolidusStripe Checkout when auto-capture is enabled creates a payment intent and automatically processes payment
     Failure/Error: @current_order = Spree::TestingSupport::OrderWalkthrough.up_to(:delivery, user: user)

     StateMachines::InvalidTransition:
       Cannot transition state via :next from :confirm (Reason(s): State cannot transition via "next")
     # ./spec/support/solidus_stripe/checkout_test_helper.rb:176:in `visit_payment_step'
     # ./spec/support/solidus_stripe/checkout_test_helper.rb:351:in `successfully_creates_a_payment_intent'
     # ./spec/system/frontend/solidus_stripe/checkout_spec.rb:44:in `block (3 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (3 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (2 levels) in <top (required)>'

  2) SolidusStripe Checkout with Stripe Payment Intents and setup_future_usage=off_session creates a payment intent and successfully processes payment
     Failure/Error: @current_order = Spree::TestingSupport::OrderWalkthrough.up_to(:delivery, user: user)

     StateMachines::InvalidTransition:
       Cannot transition state via :next from :confirm (Reason(s): State cannot transition via "next")

     [Screenshot Image]: /Users/eric/dev/slipwise/mos/tmp/capybara/failures_r_spec_example_groups_solidus_stripe_checkout_with_stripe_payment_intents_and_setup_future_usage_off_session_creates_a_payment_intent_and_successfully_processes_payment_463.png


     # ./spec/support/solidus_stripe/checkout_test_helper.rb:176:in `visit_payment_step'
     # ./spec/support/solidus_stripe/checkout_test_helper.rb:351:in `successfully_creates_a_payment_intent'
     # ./spec/system/frontend/solidus_stripe/checkout_spec.rb:25:in `block (4 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (3 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (2 levels) in <top (required)>'

  3) SolidusStripe Checkout with Stripe Payment Intents and setup_future_usage=off_session with a guest user creates a payment intent and successfully processes payment
     Failure/Error: @current_order = Spree::TestingSupport::OrderWalkthrough.up_to(:delivery, user: user)

     StateMachines::InvalidTransition:
       Cannot transition state via :next from :confirm (Reason(s): State cannot transition via "next")

     [Screenshot Image]: /Users/eric/dev/slipwise/mos/tmp/capybara/failures_r_spec_example_groups_solidus_stripe_checkout_with_stripe_payment_intents_and_setup_future_usage_off_session_with_a_guest_user_creates_a_payment_intent_and_successfully_processes_payment_553.png


     # ./spec/support/solidus_stripe/checkout_test_helper.rb:176:in `visit_payment_step'
     # ./spec/support/solidus_stripe/checkout_test_helper.rb:351:in `successfully_creates_a_payment_intent'
     # ./spec/system/frontend/solidus_stripe/checkout_spec.rb:32:in `block (5 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (3 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (2 levels) in <top (required)>'

  4) SolidusStripe Checkout with declined cards reject transactions with cards declined at intent creation or invalid fields and return an appropriate response
     Failure/Error: @current_order = Spree::TestingSupport::OrderWalkthrough.up_to(:delivery, user: user)

     StateMachines::InvalidTransition:
       Cannot transition state via :next from :confirm (Reason(s): State cannot transition via "next")

     [Screenshot Image]: /Users/eric/dev/slipwise/mos/tmp/capybara/failures_r_spec_example_groups_solidus_stripe_checkout_with_declined_cards_reject_transactions_with_cards_declined_at_intent_creation_or_invalid_fields_and_return_an_appropriate_response_583.png


     # ./spec/support/solidus_stripe/checkout_test_helper.rb:176:in `visit_payment_step'
     # ./spec/system/frontend/solidus_stripe/checkout_spec.rb:115:in `block (3 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (3 levels) in <top (required)>'
     # ./spec/support/solidus_starter_frontend/database_cleaner.rb:11:in `block (2 levels) in <top (required)>'
i am removing the
address
and
delivery
steps, but i don't think i am doing anything to prevent the
payment
step from coming before
confirm
Copy code
module Spree
  class Order
    module RemoveSteps
      def self.prepended(base)
        base.remove_checkout_step :address
        base.remove_checkout_step :delivery
      end

      ::Spree::Order.prepend self
    end
  end
end
interesting ...
payment_required?
is returning
false
because it thinks
total
is
0
even though confirm shows a non-zero value
looks as if i need a
recalculate