How can I test subscription products for my Microsoft Store app before publishing?

Oruc 0 Reputation points
2025-10-19T08:29:02.9+00:00

I’m developing a .NET MAUI app that includes in-app subscription products using the Microsoft Store. Everything works fine technically, but I can’t find any sandbox or testing environment to simulate real subscription purchases, renewals, or cancellations before the app goes live.

I created a free subscription product, and I can purchase it successfully with a normal Microsoft account. However, after I cancel the subscription, it remains active for at least 5 more days, and I can’t repurchase it during that period. This means that I need to create a new Microsoft account every time I want to test the subscription flow, which is very inconvenient.

Other markets sandbox environments for testing in-app subscriptions — is there any similar solution for the Microsoft Store?

If not, what’s the recommended way for developers to test subscriptions before publishing a live version of the app?

Thanks in advance for your help.

Developer technologies | Visual Studio | Testing
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Varsha Dundigalla(INFOSYS LIMITED) 2,785 Reputation points Microsoft External Staff
    2025-10-20T10:21:47.58+00:00

    Thank you for reaching out.

    Microsoft does not provide a dedicated sandbox environment for subscription testing. All tests occur in the live Microsoft Store environment, so you cannot instantly simulate renewals, cancellations, or expirations.

    Workarounds You Can Use

    1. Create Free Subscription Add-ons

    Set the subscription price to Free in Partner Center to test purchase flows without charges.

    Official Guide: In-app purchases and trials

    1. Use Private Audience for Beta Testing

    Distribute your app to a controlled group of testers before public release.

    Official Guide: Beta testing and targeted distribution

    1. Generate Promotional Codes

    Create promotional codes for subscription add-ons so testers can redeem them for free. Generate promotional codes - Windows apps | Microsoft Learn

    1. Use Multiple Microsoft Accounts

    If you need to test cancellation and repurchase scenarios, you may need multiple Microsoft accounts because a single account cannot repurchase the same subscription immediately after cancellation.

    1. Implement Robust Subscription State Handling

    Handle states like active, expired, and grace period using the Windows.Services.Store API.

    Official Guide: Windows.Services.Store API

    Let me know if you need any further help with this. We'll be happy to assist.

    If you find this helpful, please mark this as answered.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.