question

Bryan-9661 avatar image
0 Votes"
Bryan-9661 asked RoyLi-MSFT commented

GetCustomerPurchaseIdAsync() does not return a valid store ID key

Hello,

For our UWP app, we are calling the GetCustomerPurchasedIdAsync() method with a valid access token and userID (email in this case) in order to get a valid Store ID key. For the majority of our users this works fine, however for about 12% of them, the method returns a blank result. The users can purchase within our UWP application, however without the corresponding key we cannot view their transaction history via the Store API.

We have followed the documentation found here: https://docs.microsoft.com/en-us/windows/uwp/monetize/view-and-grant-products-from-a-service and are using the Windows.Services.Store namespace.

Each access token is based on the proper scope and Azure identifier URI so the similar question from >2 years ago is not necessarily applicable:

http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/310bc8b5-d9da-4bdd-82ec-2ea49596ab67/


What would cause a blank or invalid store ID key to be the result? Is there a way to debug/trace the underlying cause of the issue?

Thanks for any assistance!


partner-center-general
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi again @RoyLi-MSFT,

Yes, our application uses both and in both cases (for the same users) the results are blank.

0 Votes 0 ·

Sorry, I misread your response to mean using a call to StoreContext.GetUserCollectionsIdAsync(). (Which we are using to get keys for collection purchases)

Are you simply suggesting we use the GetUserCollectionAsync() to get store purchase info instead of the Store API for these users?

Thanks.



0 Votes 0 ·
Show more comments

0 Answers