From 8b4e6bf31793acf6ead2e926ecc409b72ad99363 Mon Sep 17 00:00:00 2001 From: erio Date: Thu, 9 Apr 2026 15:41:07 +0800 Subject: [PATCH] refactor(payment): unify Stripe payment flow, remove StripePopupView dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All Stripe methods now use confirmPayment({redirect: 'if_required'}): - Card: confirms inline, shows success page - WeChat: Stripe shows QR modal overlay on same page, no popup - Alipay: Stripe redirects to Alipay page, returns to result page Removes POPUP_METHODS, StripePopupView postMessage handshake, and onStripeRedirect handler. Eliminates double-popup issue for WeChat (3 windows → 1) and simplifies Alipay (2 windows → 1 redirect). --- .../payment/StripePaymentInline.vue | 46 ++----------------- frontend/src/views/user/PaymentView.vue | 12 ----- 2 files changed, 5 insertions(+), 53 deletions(-) diff --git a/frontend/src/components/payment/StripePaymentInline.vue b/frontend/src/components/payment/StripePaymentInline.vue index c7e8b3117f..dcd81916f5 100644 --- a/frontend/src/components/payment/StripePaymentInline.vue +++ b/frontend/src/components/payment/StripePaymentInline.vue @@ -62,17 +62,12 @@