feat(payment): expand Stripe methods and checkout handoff
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user