0

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.

Bridge
  • 29,818
  • 9
  • 60
  • 82
Newbie
  • 1,160
  • 2
  • 11
  • 24

2 Answers2

2

Use the MarketplaceDetailTask launcher:

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

See:

How to use the Marketplace detail task for Windows Phone

anderZubi
  • 6,414
  • 5
  • 37
  • 67
0

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.
                }
            }
Sandeep Chauhan
  • 1,313
  • 1
  • 10
  • 23