Streamit Laravel - Documentation

Google Play Console Setup

Estimated reading: 3 minutes

Welcome to Google Play console! In this guide, you will learn how to configure google play for integrating RevenueCat into application.

The Google Play Console is a platform provided by Google for developers to publish, manage, and distribute Android apps on the Google Play Store. It offers a suite of tools and analytics to help you monitor your app’s performance, user acquisition, monetization, and app quality.

To set up Google Play Console for managing subscription, follow these steps:

Add the Billing Library dependency

To add subscriptions in Provider app on the Google Play Store, you must enable the Google Play Billing Library. This library allows your app to handle in-app purchases and subscriptions securely and efficiently.

Here are the steps to enable and configure the Billing Library in your app:

In your android/app/build.gradle (Module) file, add the necessary dependency for the Google Play Billing Library. As of now, the latest version is 7.1.1, but you can check for the latest version on Google’s Billing Library documentation here.

Verify the dependency exist or not. If not add below two lined inside your dependencies block.

dependencies {

implementation "com.android.billingclient:billing:7.1.1"
}
  • Release a new app version with Billing library to Google Plays console in “Close Testing track”.
  • Once it gets live you can create subscriptions from Google Play console.

Create Subscription

Creating subscription means adding subscription plan. You have to add subscription for all plans you have added in your admin panel other than free plan. Let’s say you have yearly “Premium Plan” in your admin panel and want to add annual/yearly subscription plan in Google Play Console.

1. Go to “Monetise with Pay” → “Products” → “Subscriptions”

2. Click on Create Subscription button.

3. Add “Product Id” and name for the plan. Here for “Premium Plan” we will add “premium_plan” as “Product Id”.

Add Base Plan

1. After creating subscription you’ve to add one base plan for the subscription.

Click on “Add base plan” button

2. Add base plan details like,

As “Base Plan Id” here we’ll add “premium” (You can choose relative like “premium-yearly” etc)

Choose “Prepaid” as type and add duration of your plan whatever duration you’ve chose in your admin panel for your plan.

“Prepaid” orders because Streamit currently supports only “prepaid” orders.

In Allow extension choose “Don’t allow” and save the base plan.

Please note that Play Store won’t allow you to set price of plan as 0. There no need to create subscription for your free plan.

Now repeat the process for all the plans you have added in you admin panel other than free plan.

Verify you’ve added in admin panel for particular plan matches with revenueCat product identifiers.

INFO

Here

If you have “Premium Plan” of monthly and yearly.

So your subscription can look like

  • Create Subscription with name “Premium Subscription” and Product Id “premium-subscription”
  • Add Base plan with id “premium-monthly” first then “premium-yearly”.