PayEngineNative class
PayEngineNative provides an interface for interacting with the native PayEngine SDK.
This class utilizes platform channels to bridge communication between Flutter and native platforms, enabling functionalities such as fraud monitoring, browser info retrieval, and Apple Pay / Google Pay support detection.
Constructors
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
-
platformVersion
→ Future<
String> -
Retrieves the platform version from the native SDK.
no setter
Static Methods
-
getBrowserInfo(
) → Future< String> - Retrieves browser-related information from the native SDK.
-
getFraudMonitorSession(
String merchantId) → Future< String> - Retrieves a fraud monitoring session ID from the native PayEngine SDK.
-
logout(
String merchantId) → Future - Logs out the current merchant by invalidating the access token.
-
setConfig(
String publicKey, String? scriptURL) → Future - Configures the PayEngine SDK with the provided public key and optional script URL.
-
setFetchAccessTokenCallback(
Future< PEAccessTokenJson> callback()) → void - Sets the callback function that provides an access token when required by PayEngine.
-
userCanPay(
PayProvider provider, String merchantId) → Future< bool> - Checks if the user can make payments using Apple Pay (iOS) or Google Pay (Android).