Files
device-voice-h5/openspec/changes/add-alipay-payment-link-flow/tasks.md
sexygoat 169d2bdaad
Some checks failed
构建并部署前端到生产环境 / build-and-deploy (push) Failing after 53s
fix: 修改套餐位置
2026-05-28 14:16:07 +08:00

1.5 KiB

1. Shared Payment Branching

  • 1.1 Add shared front-end handling for Alipay payment_link responses alongside the existing WeChat pay_config flow
  • 1.2 Ensure Alipay requests do not depend on app_type and existing WeChat requests continue to work unchanged

2. Package Purchase Flow

  • 2.1 Add Alipay as a selectable payment method in pages/package-order/package-order.vue
  • 2.2 Handle normal package order payment responses for wechat, wallet, and alipay
  • 2.3 Handle strong recharge branches that return payment_link for Alipay

3. Order List Flow

  • 3.1 Add an order-list payment entry that lets the user continue pending orders with Alipay
  • 3.2 Refresh order list state from backend data after the user completes or retries the Alipay flow

4. Wallet Flow

  • 4.1 Add Alipay as a selectable payment method in the wallet recharge popup
  • 4.2 Handle Alipay recharge creation responses in confirmRecharge
  • 4.3 Handle Alipay payment retries for pending recharge orders in handleRechargePayment
  • 4.4 Refresh wallet detail and recharge list state from backend data after the Alipay flow

5. Regression Verification

  • 5.1 Verify WeChat package payment still uses pay_config
  • 5.2 Verify wallet-balance package payment remains unchanged
  • 5.3 Verify Alipay package payment, order-list payment, wallet recharge, and recharge retry can all open a valid payment link flow
  • 5.4 Verify payment success is determined by refreshed backend status instead of the link jump result