Windows.ApplicationModel.Store.CurrentAppSimulator.RequestProductPurchaseAsync() no longer works

Hong 1,046 Reputation points
2019-12-22T08:00:01.627+00:00

The following code used to work:

Windows.ApplicationModel.Store.PurchaseResults pr = await Windows.ApplicationModel.Store.CurrentAppSimulator.RequestProductPurchaseAsync(_ud.sInAppTokenName);

It no longer shows a window. Instead, it returns immediately with
pr.Status == Windows.ApplicationModel.Store.ProductPurchaseStatus.NotPurchased

Both the targe and min versions of the UWP app are 18362. Could anyone shed some light on this?

Universal Windows Platform (UWP)
{count} votes