apiBaseUrl property

String get apiBaseUrl

Hardcoded API base URL for the selected environment.

Host apps cannot override this — see the class docs for rationale.

Implementation

String get apiBaseUrl {
  switch (environment) {
    case LokotroPayEnvironment.production:
      return 'https://app.api.gtwy.lokotro.com';
    case LokotroPayEnvironment.staging:
      return 'https://staging.app.api.gtwy.lokotro.com';
    case LokotroPayEnvironment.sandbox:
      return 'https://dev.app.api.gtwy.lokotro.com';
  }
}