init static method
void
init({
- required String apiKey,
- int identifierLength = 20,
- PaygateVersion? apiVersion,
- String? apiKeyDebug,
- bool allowBadCertificates = false,
Initialize plugin.
Implementation
static void init({
required String apiKey,
int identifierLength = 20,
PaygateVersion? apiVersion,
String? apiKeyDebug,
bool allowBadCertificates = false,
}) {
PaygateConfig.version = apiVersion ?? PaygateVersion.v2;
PaygateConfig.paygateAPIKeyProd = apiKey;
PaygateConfig.paygateAPIKeyDebug = apiKeyDebug ?? apiKey;
PaygateConfig.transactionIdentifierLength = identifierLength;
PaygateHttpClient().init(allowBadCertificates: allowBadCertificates);
}