1.4 KiB
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_linkresponses for Alipay while preserving existing WeChatpay_confighandling - 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