From 8f0d4d23a785c4bb54ae35fc929668a6415b8ec6 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 18 Mar 2026 14:54:44 +1100 Subject: [PATCH] Restore Stripe spec stubs as todo list --- .../consumer/shopping/checkout_stripe_spec.rb | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 spec/system/consumer/shopping/checkout_stripe_spec.rb diff --git a/spec/system/consumer/shopping/checkout_stripe_spec.rb b/spec/system/consumer/shopping/checkout_stripe_spec.rb new file mode 100644 index 0000000000..fe41a0675d --- /dev/null +++ b/spec/system/consumer/shopping/checkout_stripe_spec.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +require 'system_helper' + +RSpec.describe "Check out with Stripe" do + describe "using Stripe SCA" do + context "with guest checkout" do + context "when the card is accepted" do + it "completes checkout successfully" + end + + context "when the card is rejected" do + it "shows an error message from the Stripe response" + end + + context "when the card needs extra SCA authorization" do + describe "and the authorization succeeds" do + it "completes checkout successfully" + end + + describe "and the authorization fails" do + it "shows an error message from the Stripe response" + end + end + + context "with multiple payment attempts; one failed and one succeeded" do + it "records failed payment attempt and allows order completion" + end + end + + context "with a logged in user" do + context "saving a card and re-using it" do + it "allows saving a card and re-using it" + end + end + end +end