Simplify account payment flow and harden direct transfers

This commit is contained in:
2569718930@qq.com
2026-06-14 06:58:45 +08:00
parent 715d79c9b5
commit 0f497ab822
15 changed files with 310 additions and 167 deletions
@@ -28,14 +28,14 @@ export function runTests() {
accountCenter.includes("canTrialUpgrade") &&
accountCenter.includes("isTrialSubscription") &&
accountCenter.includes("canTrialUpgrade || !isSubscribed"),
"trial subscribers must be allowed to open the Pro checkout before expiry",
"trial subscribers must be allowed to enter payment management before expiry",
);
assert(
accountCenter.includes("useSearchParams") &&
accountCenter.includes('searchParams.get("checkout") === "1"') &&
accountCenter.includes("setShowOverlay(true)"),
"account page must support /account?checkout=1 for direct upgrade entry",
accountCenter.includes("focusPaymentManagement"),
"account page must support /account?checkout=1 by focusing payment management",
);
assert(