API access and integration with Microsoft Partner Center for managing partner data
To implement an application subscription service in a TypeScript project using Microsoft Store add-ins, you will need to follow these steps:
- 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.
- 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.
- 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).
- 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
GetAssociatedStoreProductsAsyncmethod. - Analytics: Utilize analytic reports to track subscription acquisitions, active subscribers, and cancellations.
- 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: