locked
UWP IAP RRS feed

  • Question

  • After checking the msdn articles, we can see two namespaces for creating the IAP, one is using the storecontext, the other is using the currentapp. Which one do I choose during my IAP development.
    Thursday, January 26, 2017 6:21 AM

Answers

  • @newyixin,

    Please check the official document  about Choose which namespace to use The difference has been wrote there.

    Windows.Services.Store  Starting in Windows 10, version 1607, apps can use the API in this namespace to implement in-app purchases and trials. We recommend that you use the members in this namespace if your app targets Windows 10, version 1607, or a later release.

    Windows.ApplicationModel.Store  All versions of Windows 10 also support an older API for in-app purchases and trials in this namespace. Although any UWP app for Windows 10 can use this namespace, this namespace may not be updated to support new types of products and features in Dev Center and the Store in the future.

    So you have to choose based on your requirements.

    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 Friday, February 3, 2017 2:10 AM
    Tuesday, January 31, 2017 2:33 AM

All replies

  • Hello newyixin,

    Please check the MSDN article:

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

    Now you'd better use Windows.Services.Store or Windows.ApplicationModel.Store API.

    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.

    Thursday, January 26, 2017 10:06 AM
  • Now you'd better use Windows.Services.Store or Windows.ApplicationModel.Store API.

    Which one? Can you explain?
    Tuesday, January 31, 2017 2:30 AM
  • @newyixin,

    Please check the official document  about Choose which namespace to use The difference has been wrote there.

    Windows.Services.Store  Starting in Windows 10, version 1607, apps can use the API in this namespace to implement in-app purchases and trials. We recommend that you use the members in this namespace if your app targets Windows 10, version 1607, or a later release.

    Windows.ApplicationModel.Store  All versions of Windows 10 also support an older API for in-app purchases and trials in this namespace. Although any UWP app for Windows 10 can use this namespace, this namespace may not be updated to support new types of products and features in Dev Center and the Store in the future.

    So you have to choose based on your requirements.

    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 Friday, February 3, 2017 2:10 AM
    Tuesday, January 31, 2017 2:33 AM