Why the documentation says receipts are optional for IAP?

Domenico Rosito 31 Reputation points

In referring to this arcticle:

It says:
"Each Microsoft Store transaction that results in a successful product purchase can optionally return a transaction receipt".

What does it mean?
If I ask the receipt to the store, it could return me nothing? In that case, it depends on...what?

Or is it intended "optional" because I can "optionally" request a receipt?


Universal Windows Platform (UWP)
{count} vote

Accepted answer
  1. Roy Li - MSFT 32,721 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    Or is it intended "optional" because I can "optionally" request a receipt?

    Yes, you could choose to request a receipt or not when you are using the old Windows.ApplicationModel.Store namespace. For example, when you are trying to CurrentApp.RequestProductPurchaseAsync Method or CurrentApp.RequestAppPurchaseAsync(Boolean) Method, both of them have a bool parameter called includeReceipt. This parameter determines if the method should return the receipts for this app. If you are passing false as the value, then no receipt will be returned.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful