How do I implement an application subscription service in a TypeScript project?

Jason 0 Reputation points
2026-01-17T11:59:25.3766667+00:00

I would like to ask how to integrate Microsoft Store add-ins into an Electron + TypeScript project to create an application subscription service?

Microsoft Partner Center API
0 comments No comments

1 answer

Sort by: Oldest
  1. AI answer

    2026-01-17T11:59:35.9966667+00:00

    To implement an application subscription service in a TypeScript project using Microsoft Store add-ins, you will need to follow these steps:

    1. Target the Correct Windows Version: Ensure your project targets Windows 10 Anniversary Edition (10.0; Build 14393) or later in Visual Studio. This is necessary for using subscription add-ons.
    2. Use the Correct API: Implement the in-app purchase experience using the APIs in the Windows.Services.Store namespace instead of the Windows.ApplicationModel.Store namespace.
    3. Define Subscription Add-ons: You can offer subscription add-ons with various billing periods (1 month, 3 months, etc.) and optional free trial periods (1 week or 1 month).
    4. Manage Subscriptions: Use the provided APIs to manage subscriptions, including checking the active licenses, offering trials, and handling purchases. You can get information about available subscription add-ons using the GetAssociatedStoreProductsAsync method.
    5. Analytics: Utilize analytic reports to track subscription acquisitions, active subscribers, and cancellations.
    6. Customer Management: Customers can manage their subscriptions through the Microsoft account services page, where they can view, cancel, or change payment methods for their subscriptions.

    By following these steps and utilizing the appropriate APIs, you can successfully integrate a subscription service into your Electron + TypeScript project.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.