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.subscriptionService.getTrialStatus(
    spaceId = "spaceId",
    productId = "productId",
    onSuccess = { trialStatus ->
      // Handle trial status
    },
    onError = { error ->
      // The error object contains the error code and message
    }
    )