Store Fixes: Dummy Credit Card to Simulate Purchase

Richard Freytag 26 Reputation points
2023-01-25T01:56:30.73+00:00

It would be great if there was a dummy credit card one could enable while debugging. This would make a it possible to simulate and test purchase of our app.

By setting a debug flag in VS, user initiation of purchase and hand-off to the Microsoft Store dialog would assume a simulated purchase. To confirm this status the Store Purchase would return with a simulation flag set so the debugged code for appropriate handling.

This would be add a lot of confidence around purchase flow. Can we get this?

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
877 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,111 Reputation points Microsoft Vendor
    2023-01-25T06:07:45.3266667+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Can we get this?

    I have to say that there is no such feature for simulating in-app purchases in Windows.Services.Store Namespace. I'd suggest you create free add-ons for testing purpose.

    The old Windows.ApplicationModel.Store Namespace does have a feature to test in a simulated version by using a class called CurrentAppSimulator. But you need to note that the Windows.ApplicationModel.Store Namespace has no longer been updated since Windows 10 Anniversary Edition (10.0; Build 14393). It doesn't contain APIs for new store feature like subscription add-on. More information about how to use the old store API here: In-app purchases and trials using the Windows.ApplicationModel.Store namespace

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our [documentation][2] to enable e-mail notifications if you want to receive the related email notification for this thread.