locked
Universal App: how to share in-app purchases? It seems not to work

    Question

  • Hello guys,

    I created a Universal App and I submitted it to the store, but I have a problem:

    I created in-app purchases with the same names in Windows Store Dev Center and in Windows Phone Dev Center, and I tried to buy from my app on the phone, but in the corresponding Windows Store app I can't see the license active.

    I used this shared method to buy a product:

    await CurrentApp.RequestProductPurchaseAsync(productname);

    And this to check the license at the app start:

    if (CurrentApp.LicenseInformation.ProductLicenses[productname].IsActive)

    What's wrong?

    Is there something I have to declare to SHARE in-app purchases among the 2 apps??

    Thursday, April 09, 2015 9:40 AM

Answers

  • Thanks Matt,

    but the solution was to use the

    CurrentApp

    .GetAppReceiptAsync()

    and check if the product has a receipt!

    And obviously...no documentation about this.........anywhere

    • Marked as answer by LSROwner Friday, April 10, 2015 1:26 PM
    Friday, April 10, 2015 1:26 PM

All replies

  • The names of the apps in the store have to match up. I suggest you contact the Windows Store Publishing team for best assistance.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, April 09, 2015 1:06 PM
    Moderator
  • Thanks Matt,

    but the solution was to use the

    CurrentApp

    .GetAppReceiptAsync()

    and check if the product has a receipt!

    And obviously...no documentation about this.........anywhere

    • Marked as answer by LSROwner Friday, April 10, 2015 1:26 PM
    Friday, April 10, 2015 1:26 PM