Hello,
Welcome to our Microsoft Q&A platform!
In order to check if an add-on has purchased or not, please check the license information using StoreContext Class. To access the licenses for durable add-ons of the current app for which the user has an entitlement to use, use the AddOnLicenses property of the StoreAppLicense object as follows:
public async void GetLicenseInfo()
{
if (context == null)
{
context = StoreContext.GetDefault();
}
StoreAppLicense appLicense = await context.GetAppLicenseAsync();
if (appLicense == null)
{
textBlock.Text = "An error occurred while retrieving the license.";
return;
}
// Access the valid licenses for durable add-ons for this app.
foreach (KeyValuePair item in appLicense.AddOnLicenses)
{
StoreLicense addOnLicense = item.Value;
// Use members of the addOnLicense object to access license info
// for the add-on.
}
}
For more information, please refer to this document: Get license info for apps and add-ons.
Thanks