HyperSDK class

Core class to expose all HyperSDK api's to flutter.

Proper integration constructs to be followed.

Constructors

HyperSDK.new()

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

createHyperServices(String clientId) Future<void>
createHyperServicesWithTenantId(String tenantId, String clientId) Future<void>
Creates HyperServices instance with tenantId & clientId. {@category Optional}
hyperFragmentView(double height, double width, String namespace, Map<String, dynamic> payload, void processHandler(MethodCall)) Widget
Blended payment widget where users can interact with both product and payment UI at the same time as per convenience.
hyperSdkView(Map<String, dynamic> params, void processHandler(MethodCall)) StatefulWidget
initiate(Map<String, dynamic> params, void initiateHandler(MethodCall)) Future<String>
Initiates and setup's the SDK.
isInitialised() Future<bool>
Check if SDK is initiated. If SDK is not initiated first call initiate to setup SDK. {@category Required}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBackPress() Future<String>
Required for Android backpress handling. {@category Required}
openPaymentPage(Map<String, dynamic> params, void hyperSdkCallBackHandler(MethodCall)) Future<String>
process(Map<String, dynamic> params, void processHandler(MethodCall)) Future<String>
To be called for triggering any actions on SDK.
processWithActivity(Map<String, dynamic> params, void processHandler(MethodCall)) Future<String>
terminate() Future<String>
Kills the SDK and cleans up any extra resources. {@category Optional}
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

preFetch(Map<String, dynamic> params) Future<String>
Fetches dynamic assets for SDK. {@category Optional}