Reputation: 1180
How can you implement a 'buy' link into a trial app?
Do you use the same method as for implementing a 'rate' link?
Thanks a lot.
Upvotes: 0
Views: 492
Reputation: 6424
Use the MarketplaceDetailTask
launcher:
MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.Show();
See:
How to use the Marketplace detail task for Windows Phone
Upvotes: 2
Reputation: 1313
first of all you will have to register that buy in your developer accound as in-app product and then use this ...
public static LicenseInformation licenseInformation;
if (!App.licenseInformation.ProductLicenses["productid"].IsActive)
{
try
{
// The user doesn't own this feature, so
// show the purchase dialog.
await CurrentApp.RequestProductPurchaseAsync("productid", false);
// the in-app purchase was successful
}
catch (Exception)
{
// The in-app purchase was not completed because
// an error occurred.
}
}
else
{
// The user already owns this feature.
}
}
Upvotes: 0