0

I am getting product details (which is nothing but subscription plans offered) using queryProductDetailsAsyc API. It returns productDetails which has all the base plans under a product. these base plans or subscriptionOffers subscriptionOfferDetails are configured in google play console with all the information like price, duration, offertoken etc. I am getting all the information except the id of the base plan. This base plan id is what identifies the plans in our system. Is there a way to get this id ?

sits_1608
  • 29
  • 3

2 Answers2

0

In order to identify the plans, you can use tags. Tags can uniquely identifiy an offer or the base plan.

Tags in the console can accept multiple values but it would be better to use one.

Arpit
  • 1,259
  • 11
  • 21
0

They added this function in billing version 5.1

ProductDetails.SubscriptionOfferDetails.getBasePlanId() 

https://developer.android.com/google/play/billing/release-notes#5-1

Pratik
  • 413
  • 3
  • 6