Vizion AI - Documentation
Vizion AI

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 your website or 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 your 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 {
def billing_version = "7.1.1"

implementation "com.android.billingclient:billing:$billing_version"
}
  • 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 Laravel admin panel. 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” 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 Vizion AI currently supports only “prepaid” orders.

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

Now repeat the process for all the plans you have added in you admin panel.

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”.