From 384a1b30702b4bcb99712a6cc789af58bd05bd36 Mon Sep 17 00:00:00 2001 From: erio Date: Wed, 8 Apr 2026 21:26:17 +0800 Subject: [PATCH] feat(payment): embed Stripe Payment Element inline instead of popup Stripe payment now shows the Payment Element directly on the purchase page. User selects payment method (Alipay/WeChat/Card) inline, then confirms. Redirect-based methods (Alipay) navigate to the payment page; non-redirect methods (Card/WeChat) complete inline. --- .../payment/StripePaymentInline.vue | 131 ++++++++++++++++++ frontend/src/views/user/PaymentView.vue | 43 ++++-- 2 files changed, 159 insertions(+), 15 deletions(-) create mode 100644 frontend/src/components/payment/StripePaymentInline.vue diff --git a/frontend/src/components/payment/StripePaymentInline.vue b/frontend/src/components/payment/StripePaymentInline.vue new file mode 100644 index 0000000000..fa9ee4bc06 --- /dev/null +++ b/frontend/src/components/payment/StripePaymentInline.vue @@ -0,0 +1,131 @@ + + + diff --git a/frontend/src/views/user/PaymentView.vue b/frontend/src/views/user/PaymentView.vue index 90422d48f1..1b8f553819 100644 --- a/frontend/src/views/user/PaymentView.vue +++ b/frontend/src/views/user/PaymentView.vue @@ -26,7 +26,7 @@

{{ t('payment.notAvailable') }}

-