fix(payment): support ezpay cashier urls

This commit is contained in:
2026-06-22 16:35:06 +08:00
parent 5ed43a37ce
commit 890c955712
2 changed files with 44 additions and 1 deletions
@@ -134,13 +134,17 @@ export function SubscriptionCheckoutButton({
function getPaymentUrl(payParams: Record<string, unknown>): string | null {
const keys = [
"url",
"cashierUrl",
"cashier_url",
"checkoutUrl",
"checkout_url",
"paymentUrl",
"payment_url",
"approvalUrl",
"approval_url",
"redirectUrl",
"redirect_url",
"url",
];
for (const key of keys) {