hasValidConfig static method

Future<bool> hasValidConfig()

Check if configuration exists

Implementation

static Future<bool> hasValidConfig() async {
  try {
    final hasConfig = await getBackendUrl() != null &&
                     await getApiKey() != null &&
                     await getMerchantInfo() != null;

    if (!hasConfig) return false;

    return await verifyConfigIntegrity();
  } catch (e) {
    return false;
  }
}