Environment enum

The backend environment a SwichPay client talks to.

Inheritance
Available extensions

Values

sandbox → const Environment
production → const Environment

Properties

authBaseUrl → String
Host for /connect/token - the OAuth2 client_credentials exchange that authenticates every gateway/payment-api/discount call. Matches native's NetworkClient auth hosts.
no setter
checkoutBaseUrl → String
Host for /init and /iframe/Payment.
no setter
discountBaseUrl → String?
Host for /api/Discount/GetDiscount. No production host exists yet - null there, so production calls fail fast instead of sending live customer data to sandbox.
no setter
gatewayBaseUrl → String
Host for /gateway/paymentsession/mobileappinit. Matches native's NetworkClient payment hosts.
no setter
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
paymentApiBaseUrl → String?
Host for /api/Payment/{PaymentV3,TokenizedPaymentV3,InquireV3} - the direct (session-less) card payment flow. No production host exists yet - null there, same as discountBaseUrl.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<Environment>
A constant List of the values in this enum, in order of their declaration.