Product Catalog

Pre-requisite

  • The user has to be signed in to perform the following operations.

Get Products

To retrieve product plans by country and product IDs, use the following method:

  • country (required): The ISO country code (e.g., “US”, “IN”) for which products should be fetched.
  • productIds (required): Comma-separated product IDs to filter the results.
InstaVision.subscriptionService.getProducts(
  country = "IN",
  productIds = "product_basic, product_pro",
  onSuccess = { plans ->
    // Handle the list of available plans (List)
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)