initialize static method
Initialize OneTwoThreeSDK Service
isProduction
(Required) - Indicates environment uses in OneTwoThreeSDK (FALSE - UAT Environment (default), TRUE - Production Environment)checkSumKey
(Required) - A key to calculate checksum for requests ans responses.publicKey
(Required) - A public key to encrypt requests from API.privateKey
(Required) - A private key to decrypt responses from API.passphrase
(Required) - A passphrase to access the private key.bksPassphrase
(Android Required) - A bkspassphrase that provided when generate the private key.
Implementation
static Future<bool> initialize({
required bool isProduction,
required String checkSumKey,
required String publicKey,
required String privateKey,
required String passphrase,
/// For Android Only
required String bksPassphrase,
}) async {
return await _channel.invokeMethod('initialize', {
'isProduction': isProduction,
'checkSumKey': checkSumKey,
'publicKey': publicKey,
'privateKey': privateKey,
'passphrase': passphrase,
'bksPassphrase': bksPassphrase,
});
}