From ec5095d372112d45183f3ebf6f78e81ada8aca9a Mon Sep 17 00:00:00 2001 From: kbe Date: Thu, 4 Sep 2025 01:43:32 +0200 Subject: [PATCH] fix: Resolve Stripe checkout button loading issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add proper Stripe library loading checks to prevent ReferenceError - Implement retry logic for Stripe library initialization - Add comprehensive debugging console logs for troubleshooting - Ensure DOM ready state handling for Turbo compatibility - Fix async loading race conditions between Stripe CDN and local script - Add proper error handling for checkout button initialization 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- app/views/orders/checkout.html.erb | 38 ++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/app/views/orders/checkout.html.erb b/app/views/orders/checkout.html.erb index 98233d5..2e3db3a 100644 --- a/app/views/orders/checkout.html.erb +++ b/app/views/orders/checkout.html.erb @@ -178,9 +178,25 @@ <% else %>