fix(payment): restore wallet order and English labels
Docker Image / Build and Push Docker Image (push) Successful in 2m1s

This commit is contained in:
Codex
2026-07-29 15:22:43 +08:00
parent 8f8e067d82
commit dae04f75dc
2 changed files with 48 additions and 18 deletions
@@ -124,6 +124,7 @@ export function StripePaymentDialog({
stripe={stripePromise}
options={{
clientSecret,
locale: "en",
...(savedCardClientSecret
? { customerSessionClientSecret: savedCardClientSecret }
: {}),
@@ -325,16 +326,14 @@ function StripePaymentForm({
<ExpressCheckoutElement
options={{
paymentMethodOrder: [
"apple_pay",
"google_pay",
"link",
"paypal",
"amazon_pay",
"klarna",
],
paymentMethods: {
applePay: "always",
googlePay: "always",
applePay: "never",
googlePay: "never",
link: "auto",
paypal: "auto",
amazonPay: "auto",
@@ -361,17 +360,20 @@ function StripePaymentForm({
}
/>
</section>
<section className={styles.cardSection} aria-labelledby="pay-by-card-title">
<h3 id="pay-by-card-title" className={styles.cardTitle}>
Pay by card
<section
className={styles.cardSection}
aria-labelledby="payment-method-title"
>
<h3 id="payment-method-title" className={styles.cardTitle}>
Choose a payment method
</h3>
<PaymentElement
options={{
layout: { type: "accordion", defaultCollapsed: true },
paymentMethodOrder: ["card"],
paymentMethodOrder: ["wechat_pay", "alipay", "card"],
wallets: {
applePay: "never",
googlePay: "never",
applePay: "auto",
googlePay: "auto",
link: "never",
},
}}