SdkBuilder class
Main builder class responsible for initializing and configuring SDK modules.
This class follows the singleton pattern and provides methods to initialize different payment modules based on the transaction type and requirements. It handles the setup of card payments, wallet payments, Apple Pay, and transaction management modules.
Features
- Module Initialization: Sets up payment modules with network services
- Cache Management: Handles SDK cache storage initialization
- Flexible Configuration: Supports different payment scenarios
- Singleton Pattern: Ensures single instance throughout the app
Usage Example
// Initialize cache storage
await SdkBuilder.instance.initCacheStorage();
// Initialize card payment modules
SdkBuilder.instance.initCardModules(networkService);
// Initialize wallet payment modules
SdkBuilder.instance.initWalletModules(networkService);
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
-
initApplePayModules(
NetworkService networkService) → void - Initializes Apple Pay modules for digital wallet payments.
-
initCacheStorage(
) → Future< void> - Initializes the cache storage system for the SDK.
-
initCardModules(
NetworkService networkService) → void - Initializes card payment modules with the provided network service.
-
initSdkModules(
NetworkService networkService) → void - Initializes all SDK modules for comprehensive payment support.
-
initTransactionModule(
NetworkService networkService) → void - Initializes the transaction module with the provided network service.
-
initWalletModules(
NetworkService networkService) → void - Initializes wallet payment modules with the provided network service.
-
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
- instance → SdkBuilder
-
Returns the singleton instance of SdkBuilder.
no setter