apiBaseUrl property

String get apiBaseUrl

Get API base URL. Throws if environment is not initialized - call initialize first.

Implementation

static String get apiBaseUrl {
  if (!_isInitialized) {
    throw StateError(
      'LokotroPayEnv is not initialized. Call LokotroPayEnv.initialize() before accessing apiBaseUrl.',
    );
  }
  return dotenv.env['API_BASE_URL'] ??
      (isProduction
          ? 'https://app.api.gtwy.lokotro.com'
          : 'https://dev.app.api.gtwy.lokotro.com');
}