export async function registerAlfaPayment(orderId: string, amount: number) {
  if (!process.env.ALFA_BANK_USER_NAME || !process.env.ALFA_BANK_PASSWORD) {
    if (process.env.NODE_ENV === "production") {
      throw new Error("Payment provider is not configured");
    }
    return {
      mode: "mock",
      orderId,
      amount,
      paymentUrl: `/payment/success?order=${encodeURIComponent(orderId)}`
    };
  }

  throw new Error("Alfa Bank credentials are set, but the production adapter is not implemented yet.");
}
