The subscription limit allows you to license your application using a subscription model. What it basically adds is the ability to verify via the LicenseSpot Framework API if the license supports subscription and if it’s active. The checking if it’s active or not is done online via LicenseSpot.

When configuring the subscription limit you have the following two options:

  • Is Active: indicates if the subscription is active or not,
  • Stripe Integration: indicates if this subscription is going to be integrated with Stripe payment provider. If it’s, the subscription is automatically enabled when a new customer buys from Stripe a subscription. If a subscription is cancelled in Stripe, it’ll be automatically disabled in LicenseSpot.

With the LicenseSpot Framework you can check if the subscription is active using the following code:

C#

ExtendedLicense license = ExtendedLicenseManager.GetLicense(typeof(Form1), this,"PUBLIC_KEY"); //paste your public key from Key Pairs
bool isActive = license.IsSubscriptionActive

VB.NET

Dim license as ExtendedLicense
license = ExtendedLicenseManager.GetLicense(Me.GetType(), Me, "your public key")
Dim isActive as Boolean = license.IsSubscriptionActive

To verify if the license supports subscription or has the subscription limit enabled then use the following code:

C#

ExtendedLicense license = ExtendedLicenseManager.GetLicense(typeof(Form1), this,"PUBLIC_KEY"); //paste your public key from Key Pairs
bool isActive = license.IsSubscription

VB.NET

Dim license as ExtendedLicense
license = ExtendedLicenseManager.GetLicense(Me.GetType(), Me, "your public key")
Dim isActive as Boolean = license.IsSubscription