/// <summary>
/// This is useful in certain test scenarios, such as repeatedly testing
/// an App's behaviour when purchases are restored.
///
/// This is a static method since developers may wish to clear the log before
/// initialising IAP.
/// </summary>
public static void ClearTransactionLog()
{
#if UNITY_2017_1_OR_NEWER
var log = new TransactionLog(UnityEngine.Debug.unityLogger, Application.persistentDataPath);
#else
var log = new TransactionLog(UnityEngine.Debug.logger, Application.persistentDataPath);
#endif
log.Clear();
}