How to Retrieve the Price Details of the Current Purchased Plan in Google Play Billing for Android?

  Kiến thức lập trình

I’m working on an Android app that uses Google Play Billing. I need to display a price change dialog to the user, but I don’t have the old price details of the currently purchased plan.

Can someone please guide me on how to retrieve the price details of the user’s current subscription plan?

I’ve already integrated the Google Play Billing Library and can perform purchases, but I’m unsure how to get the details of the existing subscription, specifically the price.

Query Inventory give Live price.

Test Case 
> Rs.299 Weekly price 
> Live user purchased Rs.299 weekly product.
> Now I'm change price of Weekly product from Google Play Console to Rs.599 with opt-in.
> Now, who user is already purchased Weekly Rs.299 so, for this user want to notify Price is increse on next renewals.

What is the correct way to retrieve the price details of the current purchased plan so I can show a price change dialog?

Any help would be greatly appreciated!

Thank you!

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT