initWalletModules method

void initWalletModules(
  1. NetworkService networkService
)

Initializes wallet payment modules with the provided network service.

This method sets up all necessary modules for wallet-based payments, including currency handling, wallet processing, and transaction management.

Parameters:

  • networkService - The network service instance for API communication

What Gets Initialized

  • Currency module for amount formatting and validation
  • Wallet module for mobile wallet payments
  • Transaction module for payment flow management

Example

final networkService = NetworkServiceBuilder.instance.setupNetworkService(/* ... */);
SdkBuilder.instance.initWalletModules(networkService);

Implementation

void initWalletModules(NetworkService networkService) {
  final currencyModule = CurrencyBinds(networkService);
  final walletModule = SaleByWalletModule(networkService);
  final transactionModule = TransactionModule.wallet(networkService);
  transactionModule.setup();
  currencyModule.setup();
  walletModule.setup();
}