PaymentEnvironment enum
Enum representing the different environments for payment processing.
The environment determines:
- Which API endpoints are used
- Whether real money is processed
- The format of test card numbers and other test data
Usage:
final environment = PaymentEnvironment.sandbox; // For testing
final environment = PaymentEnvironment.production; // For live payments
Values
- sandbox → const PaymentEnvironment
-
For testing payments in a safe environment.
In this environment:
- No real money is processed
- Test card numbers can be used
- Webhooks are sent to test endpoints
- API responses are in test mode
- production → const PaymentEnvironment
-
For processing real transactions in the live environment.
In this environment:
- Real money is processed
- Only real card numbers work
- Webhooks are sent to production endpoints
- API responses affect real transactions
Properties
- 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 - 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<
PaymentEnvironment> - A constant List of the values in this enum, in order of their declaration.