initSdkModules method

void initSdkModules(
  1. NetworkService networkService
)

Initializes all SDK modules for comprehensive payment support.

This method sets up all available payment modules, providing support for card payments, wallet payments, Apple Pay, and comprehensive transaction management.

Parameters:

  • networkService - The network service instance for API communication

What Gets Initialized

  • Card module for credit/debit card processing
  • Wallet module for mobile wallet payments
  • Apple Pay module for digital wallet integration
  • Currency module for amount formatting and validation
  • Transaction module for unified payment flow management

Example

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

Implementation

void initSdkModules(NetworkService networkService) {
  final cardModule = SaleByCardModule(networkService);
  final walletModule = SaleByWalletModule(networkService);
  final applePayModule = SaleByApplePayModule();
  final currencyModule = CurrencyBinds(networkService);
  final transactionModule = TransactionModule.both(networkService);
  transactionModule.setup();
  currencyModule.setup();
  walletModule.setup();
  cardModule.setup();
  applePayModule.setup();
}