isValidForPlatform static method
Checks if an error code is valid for the specified platform
Implementation
static bool isValidForPlatform(ErrorCode errorCode, IapPlatform platform) {
if (platform == IapPlatform.IOS) {
return ErrorCodeMapping.ios.containsKey(errorCode);
} else {
return ErrorCodeMapping.android.containsKey(errorCode);
}
}