Streamit Laravel - Documentation

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 iOS App

  • Click on “+ Add” button from top left corner of “Apps Section”.
  • Choose “AppStore” as platform
  • You have to add your Provider App’s namebundle IdApp Store Connect App-Specific Shared SecretP8 key file from App Store Connect inside “In-App Purchase Key Configuration” and “App Store Connect API”

App Specific Shared Secret

Here is document to get it – https://www.revenuecat.com/docs/service-credentials/itunesconnect-app-specific-shared-secret/app-store-connect-api-key-configuration

In-App Purchase Key Configuration

You require following field – “.p8 Certificate ,”Key Id” and “Issuer Id

Here are steps how to get it – In-App Purchase Key configuration

App Store Connect API

Another .p8 certificate is needed for App Store connect API

You have to add following field – “.p8 Certificate , “Key Id“, “Issuer Id ” and “Vendor Number “

Find Vendor Number On App Store

Here are steps how to get it App Store Connect API Key

After adding required details save it.

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 and iOS application one by one.
  • Now here you’ll see “IMPORT PRODUCTS” which will import your subscription plans from Google Play Console and App Store.
  • 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 → Payment Method 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 inside “Google Public API Key” and iOS app Apple Public API Key
  • Go to “Earning Setting” menu and choose subscription from Select Earning Type For Provider dropdown.
  • Fill PlayStore Identifier and App Store Identifier.

Update Plans in Admin Panel

  • Go to “Plan” section.
  • Go to the RevenueCat dashboard and copy the PlayStore Identifier and App Store Identifier for the specific plan and related plan.
  • Go to Admin Panel -> Plan Section and select your desired plan.
  • Then, Fill in the PlayStore Identifier and App Store Identifier fields.

Click Save button.