HoloLens supports in-app purchases (IAPs), but there’s some work to set them up.
To use the in app-purchase functionality:
Call the RequestProductPurchaseAsync API:
await CurrentApp.RequestProductPurchaseAsync("DurableItemIAPName");
The RequestProductPurchaseAsync
API brings up the stock Windows OS popup that shows the in-app purchase name, description, and price. The user can then choose purchase options.
Apps that target desktop-based Windows Mixed Reality immersive headsets don’t need to manually switch to a XAML view before they call the RequestProductPurchaseAsync
API.