This is basically the same question that was asked in:
Since the last answer from Microsoft on this topic was in 2017, I was hoping that there is some updated answer. Are we able to test in-app add-on purchases for apps that use the 'Windows.Services.Store' namespace without spending actual money, either by indicating special test users, or by otherwise using some kind of sandbox Windows Store?
Thanks.