// Optionally: verify old purchases online. // Once we've received the product list, we overwrite // the existing shop item values with this online data public void OnInitialized(IStoreController ctrl, IExtensionProvider ext) { controller = ctrl; extensions = ext; if (validator && validator.shouldValidate(VerificationType.onStart)) { validator.Validate(); } if (ShopManager.GetInstance()) { ShopManager.OverwriteWithFetch(controller.products.all); } }