fix(subscription): show payment methods outside production

This commit is contained in:
2026-07-07 15:43:06 +08:00
parent 9f5e1533fc
commit ab9b227969
2 changed files with 31 additions and 3 deletions
@@ -1,5 +1,6 @@
import type { PayChannel, PaymentPlan } from "@/data/dto/payment";
import { getDefaultPayChannelForCountryCode } from "@/lib/payment/default_pay_channel";
import { AppEnvUtil } from "@/utils/app-env";
export { getDefaultPayChannelForCountryCode } from "@/lib/payment/default_pay_channel";
import type { CoinsOfferPlanView } from "./components/subscription-coins-offer-section";
@@ -16,6 +17,7 @@ export interface FirstRechargeOfferView {
export function canChooseSubscriptionPayChannel(
countryCode: string | null | undefined,
): boolean {
if (!AppEnvUtil.isProduction()) return true;
return countryCode?.trim().toUpperCase() === "PH";
}