From 382b96b7b461d9025898da842aeb786586b69f51 Mon Sep 17 00:00:00 2001 From: erio Date: Thu, 9 Apr 2026 03:20:52 +0800 Subject: [PATCH] feat(payment): support alipay_direct/wxpay_direct in method selector Add alipay_direct and wxpay_direct to METHOD_ORDER so they appear in the correct position when enabled. The checkout API already returns these types from direct provider instances; the method selector's icon/style matching (includes('alipay')) already handles them. --- frontend/src/components/payment/providerConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/payment/providerConfig.ts b/frontend/src/components/payment/providerConfig.ts index 91a62ec08b..c0e9fd3da9 100644 --- a/frontend/src/components/payment/providerConfig.ts +++ b/frontend/src/components/payment/providerConfig.ts @@ -37,7 +37,7 @@ export const PROVIDER_SUPPORTED_TYPES: Record = { export const EASYPAY_PAYMENT_MODES = ['qrcode', 'popup'] as const /** Fixed display order for user-facing payment methods */ -export const METHOD_ORDER = ['alipay', 'wxpay', 'stripe'] as const +export const METHOD_ORDER = ['alipay', 'alipay_direct', 'wxpay', 'wxpay_direct', 'stripe'] as const /** Payment mode constants */ export const PAYMENT_MODE_QRCODE = 'qrcode'