Files
device-voice-h5/openspec/changes/add-alipay-payment-link-flow/proposal.md
sexygoat 427b211295
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m0s
fix: pay
2026-05-22 15:16:22 +08:00

1.4 KiB

Why

The front end currently supports WeChat payment and wallet balance payment, but it does not support the new backend Alipay WAP payment-link flow. This prevents users from completing package purchase and wallet recharge scenarios when Alipay is the selected method.

What Changes

  • Add Alipay as a supported payment method in package purchase, order list immediate payment, and wallet recharge flows
  • Handle backend payment_link responses for Alipay while preserving existing WeChat pay_config handling
  • Keep wallet balance payment behavior unchanged for package purchase
  • Refresh payment-related page state from backend status after the user returns from the Alipay payment link flow
  • Preserve current order creation, strong recharge, validation, toast, and list refresh behavior except where Alipay-specific branching is required

Capabilities

New Capabilities

  • alipay-payment-link: Support backend-provided Alipay payment links across package, order, and wallet payment entry points

Modified Capabilities

Impact

  • Affected code: pages/package-order/package-order.vue, pages/order-list/order-list.vue, pages/my-wallet/my-wallet.vue, utils/payment.js, api/modules/wallet.js
  • Affected UI flows: package payment method popup, order list immediate payment, wallet recharge popup, wallet recharge order immediate payment
  • No backend API path changes expected
  • Existing WeChat and wallet payment behavior must remain available