Vizion AI - Documentation
Vizion AI

RevenueCat Setup

Estimated reading: 3 minutes

Welcome to RevenueCat! In this guide, you will learn how to sign up for a RevenueCat account and obtain necessary keys for integrating RevenueCat into your website or application.

RevenueCat

RevenueCat is a robust platform that simplifies managing in-app subscriptions and purchases across iOS, Android, and web apps. It provides tools for tracking revenue, validating receipts, and analyzing customer data, all without the need to build custom server-side infrastructure. Click here For more details about the RevenueCat.

To set up RevenueCat for managing in-app purchases, follow these steps:

Create a RevenueCat Account

  • Sign up at RevenueCat and log in to the dashboard.

Create a Project

  • In the RevenueCat dashboard, click on “Projects” menu and click on “create a new project” button for your application.

Add Android App

  • After creating project add your Android app.Before you add your Android app you’ll need Service Account json for your android app.How to get Service Account json? Follow this documentation here
  • Add your application name inside “App Name” field.
  • Add application’s package name inside “Google Play Package” (You can find your package name inside android/app/build.gradle as “applicationID”)After completing Service Account json upload you’ve to verify if it valida credentials or not.

Add Entitlement

  • Go to Entitlements and click on “+ New” button and add one identifier.
  • Add an identifier for the entitlement. (i.e subscription)
  • Add description of your plan in description

Add Products

Products basically means your subscription plans.

  • Go to Products menu from Product Catalog section
  • Click on “+ New” button and choose your Android application
  • Now here you’ll see “IMPORT PRODUCTS” which will import your subscription plans from Google Play Console.
  • Select all the plans which you’ve created as subscription in Google Play Console.

Add Offerings

  • Go to Offerings menu from Product Catalog
  • Click on “+ New” button
  • Add identifier for offerings (for i.e “subscription”)
  • After adding new offering click on that identifier. It will open identifier details.
  • Click on “+ New” button for “Packages” tab.
  • Choose identifier.( For i.e “Yearly”) and add “description” for the package.
  • After adding new package click on that package. It wil open package details
  • Click on “+ Attach” button.
  • Choose products you have added in Google Play Console. (i.e identifier – premium)
  • Attach all the subscription plans (products).

In App Purchase setup in Admin panel

  • Open your admin panel and navigate to Settings → App Configuration Settings
  • Enable switch for “In App Purchase” then fill up required fields.
  • For “Entitlement Identifier” , go to RevenueCat dashboard and click on “Entitlement” menu from “Product Catalog”
  • Copy the entitlement identifier and paste it to the “Entitlement Identifier” in admin panel.
  • For “Google Public API Key” and “Apple Public API Key” fields, go to RevenueCat dashboard and click on “API Keys” menu from “Project Settings” section.

  • Copy the “Public app-specific API keys” for your android app add it to “Google Public API Key”
  • Note – We have not added support for iOS so for Apple Public API Key put any place holder text for now.
  • Go to “Subscriptions” menu and click on edit.
  • Fill PlayStore Identifier and AppStore Identifier put the same from “PlayStore Identifier” as of now.