Environment enum
The backend environment a SwichPay client talks to.
Values
- sandbox → const Environment
- production → const Environment
Properties
- authBaseUrl → String
-
Host for
/connect/token- the OAuth2client_credentialsexchange that authenticates every gateway/payment-api/discount call. Matches native'sNetworkClientauth hosts.no setter - checkoutBaseUrl → String
-
Host for
/initand/iframe/Payment.no setter - discountBaseUrl → String?
-
Host for
/api/Discount/GetDiscount. No production host exists yet -nullthere, so production calls fail fast instead of sending live customer data to sandbox.no setter - gatewayBaseUrl → String
-
Host for
/gateway/paymentsession/mobileappinit. Matches native'sNetworkClientpayment 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 -nullthere, 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.