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.
This commit is contained in:
erio
2026-04-09 03:20:52 +08:00
parent 2fc413c82e
commit 382b96b7b4
@@ -37,7 +37,7 @@ export const PROVIDER_SUPPORTED_TYPES: Record<string, string[]> = {
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'