PayorcGeoContext class

Cached client IP and country for PayOrc signed requests (X-IP, X-IP-COUNTRY).

IP from ipify; country from PlatformDispatcher.instance.locale (countryCode).

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

countryCode String?
getter/setter pair
ip String?
getter/setter pair

Static Methods

refreshFromIpApi() Future<void>
Fetches public IP, reads country from the app locale, and syncs PayorcSdk geo headers.