locked
how to get the receipt in IAP RRS feed

  • Question

  • Using the currentapp we have the api to get the receipt, but with the storecontext I do not know if I have missed something, I can not find such API? So how to get the receipt in IAP.

    Thanks.

    Thursday, January 26, 2017 7:23 AM

Answers

  • Hello newyixin,

    Please check the official document here:

    https://msdn.microsoft.com/en-us/windows/uwp/monetize/in-app-purchases-and-trials

    About the "Receipts for in-app purchases" part. You will understand how you can do by read the document:

    "The Windows.Services.Store namespace does not provide an API you can use to obtain a transaction receipt for successful purchases in your app's code. This is a different experience from apps that use the Windows.ApplicationModel.Store namespace, which can use a client-side API to retrieve a transaction receipt.

    If you implement in-app purchases using the Windows.Services.Store namespace and you want to validate whether a given customer has purchased an app or add-on, you can use the query for products method in the Windows Store collection REST API. The return data for this method confirms whether the specified customer has an entitlement for a given product, and provides data for the transaction in which the user acquired the product. The Windows Store collection API uses Azure AD authentication to retrieve this information."

    Best regards,

    Barry


    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.

    • Marked as answer by newyixin Tuesday, January 31, 2017 2:29 AM
    Thursday, January 26, 2017 10:08 AM

All replies

  • Hello newyixin,

    Please check the official document here:

    https://msdn.microsoft.com/en-us/windows/uwp/monetize/in-app-purchases-and-trials

    About the "Receipts for in-app purchases" part. You will understand how you can do by read the document:

    "The Windows.Services.Store namespace does not provide an API you can use to obtain a transaction receipt for successful purchases in your app's code. This is a different experience from apps that use the Windows.ApplicationModel.Store namespace, which can use a client-side API to retrieve a transaction receipt.

    If you implement in-app purchases using the Windows.Services.Store namespace and you want to validate whether a given customer has purchased an app or add-on, you can use the query for products method in the Windows Store collection REST API. The return data for this method confirms whether the specified customer has an entitlement for a given product, and provides data for the transaction in which the user acquired the product. The Windows Store collection API uses Azure AD authentication to retrieve this information."

    Best regards,

    Barry


    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.

    • Marked as answer by newyixin Tuesday, January 31, 2017 2:29 AM
    Thursday, January 26, 2017 10:08 AM
  • I will check.
    Tuesday, January 31, 2017 2:29 AM