NoonEnvironment class

Class representing the Noon Payments environment and its endpoint URL.

You can use the predefined constants:

Or instantiate it directly with a custom regional URL:

NoonEnvironment("https://api-test.sa.noonpayments.com/payment/v1/order")

Constructors

NoonEnvironment(String url)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The absolute URL for this environment's API endpoint.
final

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

production → const NoonEnvironment
Default Production environment (Global)
sandbox → const NoonEnvironment
Default Sandbox environment (Global)