locked
UWP add onn (In app purchase) not showing up RRS feed

  • Question

  • Hello,

    I have an UWP app in the store for which I would like to make an add on available. I have created the add-on in the Partner Dashboard and I have selected to make this add-on only available to a group of beta testers. This submission has been accepted. I have then updated my app (again only for the same group of testers) to include a button to buy the add-on. I have tried these lines of code:

    var results = await Windows.ApplicationModel.Store.CurrentApp.RequestProductPurchaseAsync("myaddon");
    
    //alternative:
    StoreContext context = StoreContext.GetDefault();
    
    var result = await context.RequestPurchaseAsync("myaddon");

    both have failed to show an page to purchase the add-on. The first method give me an error page saying "Choose another item, This in-app purchase item is no longer available in myapp" while the second one first asks for my Microsoft account password and then says "Try that again, Something happened on our end. Waiting a bit might help" and gives me "PEX-CatalogAvailabilityDataNotFound" error.

    Any ideas?

    Thursday, October 25, 2018 3:18 PM

Answers

  • Hello,

    I have now realized my mistake: I had originally only used the first (older) method and I had read that I would have to use the name I chose as the argument. I did not get this to work and used the same name again with the newer StoreContext feature. I just replaced the name with the store id and now it seems to work fine.

    Thank you for your replies and help!

    Regards,

    Philipp

    • Marked as answer by slimshady322 Tuesday, October 30, 2018 3:25 AM
    Monday, October 29, 2018 11:00 PM

All replies

  • Hi Slimshady,

    What is the type of your add-on? The Windows.ApplicationModel.Store namespace is no longer being updated with new features, so we recommend that you use the second method(Windows.Services.Store namespace).Did you follow the steps in document : In-app purchases and trials using the Windows.Services.Store namespace to implement and test your in-app purchases?

    Best regards

    Daisy  Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, October 26, 2018 9:32 AM
  • Hello,

    thank you for your reply. I followed the steps in your linked document but I am not able to get to the page to buy the add-on. It is a "durable" (one time purchase to unlock more features) in app purchase. It was published on Sept. 30th and when I visit the Store page of my app I can see the "+ Offers in-app purchases" note.

    I have associated my visual studio project with the correct app and I have even published the updated app (for beta testers) but nobody can use the button to trigger the in-app purchase.

    Regards,

    Philipp

    Friday, October 26, 2018 9:44 AM
  • Hi Slimshady,
     >I visit the Store page of my app I can see the "+ Offers in-app purchases" note.
    It means your add-on published successfully.

    >nobody can use the button to trigger the in-app purchase.

    What does the error show when you/users click the purchase button?Could you follow the process in Test your in-app purchase or trial implementation to test your code and show the purchase error here(Don't include the private personal issue)?

    Best regards

    Daisy  Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, October 29, 2018 8:07 AM
  • Hello,

    I have now realized my mistake: I had originally only used the first (older) method and I had read that I would have to use the name I chose as the argument. I did not get this to work and used the same name again with the newer StoreContext feature. I just replaced the name with the store id and now it seems to work fine.

    Thank you for your replies and help!

    Regards,

    Philipp

    • Marked as answer by slimshady322 Tuesday, October 30, 2018 3:25 AM
    Monday, October 29, 2018 11:00 PM
  • Hi Slimshady,

    Glad to know your issue is solved.Could you mark the reply as Answer which is beneficial to other community members reading this thread?Thanks in advance.

    Best regards

    Daisy  Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, October 30, 2018 3:24 AM