Show / Hide Table of Contents

    Class Subscription

    These methods are related to the recurring billing module. They can all be accessed using an access token with 'Subscription' permission.

    Inheritance
    object
    Subscription
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: SKMV3Methods
    Assembly: Cryptolens.Licensing.CrossPlatform.dll
    Syntax
    public class Subscription

    Methods

    | Improve this Doc View Source

    RecordUsage(string, RecordUsageModel)

    This method records uses Stripe's metered billing to record usage for a certain subscription. In order to use this mehtod, you need to have set up recurring billing. A record will be created using Stripe's API with action set to 'increment'. https://app.cryptolens.io/docs/api/v3/RecordUsage

    Declaration
    public static BasicResult RecordUsage(string token, RecordUsageModel parameters)
    Parameters
    Type Name Description
    string token

    The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth

    RecordUsageModel parameters

    The parameters that the method needs.

    Returns
    Type Description
    BasicResult

    A BasicResult or null.

    • Improve this Doc
    • View Source
    Back to top Copyright © Cryptolens AB