feat(payment): expand Stripe methods and checkout handoff

This commit is contained in:
Codex
2026-07-28 16:27:03 +08:00
parent 38ae06fe04
commit e43912eebf
42 changed files with 1151 additions and 92 deletions
+9
View File
@@ -22,6 +22,15 @@ export function parsePaymentPayChannel(
return channel === "ezpay" || channel === "stripe" ? channel : null;
}
export function parsePaymentAutoRenew(
value: PaymentSearchParamValue,
): boolean | null {
const autoRenew = getFirstPaymentSearchParam(value);
if (autoRenew === "1" || autoRenew === "true") return true;
if (autoRenew === "0" || autoRenew === "false") return false;
return null;
}
export function parseSubscriptionReturnTo(
value: PaymentSearchParamValue,
): AppSubscriptionReturnTo {