Trial Management
Pre-requisite:
- The user has to be signed in to perform the following operations.
Get Trial Status (With Product ID)
To get the trial status for a specific product in a space:
spaceId(required): The ID of the space.productId(required): The product ID.InstaVision.subscriptionServices.getTrialStatus( spaceId = "spaceId", productId = "productId", onSuccess = { trialStatus -> // Handle trial status }, onError = { error -> // The error object contains the error code and message } )
The trial period of a plan
The number of trial days offered with a plan is carried on the plan itself, in its trialPeriod field, so it can be shown in the subscription screens without a separate call. A value of 0 means the plan has no trial.