import type { PayChannel } from "@/data/schemas/payment";

export function getDefaultPayChannelForCountryCode(
  countryCode: string | null | undefined,
): PayChannel {
  const normalizedCountryCode = countryCode?.trim().toUpperCase();
  return normalizedCountryCode === "PH" || normalizedCountryCode === "ID"
    ? "ezpay"
    : "stripe";
}
