From 0b8bae5e5f74088b644d508877848a95831f88dc Mon Sep 17 00:00:00 2001 From: chenhang Date: Mon, 22 Jun 2026 18:10:27 +0800 Subject: [PATCH] fix(payment): enable ezpay debug delay outside production --- .../components/subscription-checkout-button.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/subscription/components/subscription-checkout-button.tsx b/src/app/subscription/components/subscription-checkout-button.tsx index a66dd063..0de76b96 100644 --- a/src/app/subscription/components/subscription-checkout-button.tsx +++ b/src/app/subscription/components/subscription-checkout-button.tsx @@ -60,7 +60,7 @@ export function SubscriptionCheckoutButton({ if (paymentUrl) { const isEzpay = isEzpayPayment(payment.payParams); - if (AppEnvUtil.isDevelopment() && isEzpay) { + if (!AppEnvUtil.isProduction() && isEzpay) { if (ezpayRedirectTimeoutRef.current !== null) { window.clearTimeout(ezpayRedirectTimeoutRef.current); } @@ -150,7 +150,7 @@ export function SubscriptionCheckoutButton({ stripeClientSecret !== hiddenStripeClientSecret && !payment.isPaid; const pendingEzpayRedirectOrderId = - AppEnvUtil.isDevelopment() && + !AppEnvUtil.isProduction() && payment.payParams && isEzpayPayment(payment.payParams) && getPaymentUrl(payment.payParams) && @@ -185,7 +185,7 @@ export function SubscriptionCheckoutButton({ {pendingEzpayRedirectOrderId ? (
- Ezpay order created. Redirecting in 3 seconds. + Ezpay order created. Redirecting in 5 seconds. Order No. {pendingEzpayRedirectOrderId}