fix(subscription): show payment methods outside production
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user