Hello,
Welcome to Microsoft Q&A!
Based on this document: In-app purchases and trials using the Windows.ApplicationModel.Store namespace, it mentions:
The Windows.ApplicationModel.Store namespace is no longer being updated with new features. If your project targets Windows 10 Anniversary Edition (10.0; Build 14393) or a later release in Visual Studio (that is, you are targeting Windows 10, version 1607, or later), we recommend that you use the Windows.Services.Store namespace instead.
So it is recommeded that you use Windows.Services.Store namespace instead for your In-app purchase.