Domanda

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.

È stato utile?

Soluzione

Use the MarketplaceDetailTask launcher:

MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.Show();

See:

How to use the Marketplace detail task for Windows Phone

Altri suggerimenti

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.
                }
            }
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top