Solved

How can we know the base subscription plan that the user is paying every cycle?

  • 18 March 2024
  • 1 reply
  • 47 views

Badge +3

LE: Title fix: How can we know the base subscription plan price that the user is paying every cycle?

 

In our app, we have a screen where we display information about the currently active subscription, including the base plan price per month (or per year). - the price that is paid without any discounts applied

 

Up until now, we got this price by asking the RevenueCat SDK for the current offering. (`getOfferingsWith` in Android)

 

However, we want to increase the price of the subscription for users who will purchase the subscription after the price increase, while keeping existing subscribers on the old price, so we cannot rely on this method anymore, otherwise we’ll end up displaying the new price for old subscribers too, even though they won’t be paying the new price.

 

We are aware of the `price_in_purchased_currency` field in the webhooks, but that will include discounts, and will also be `0` when the user is in trial - that is not what we want to display.

 

Is there a way to get the correct base plan price? I am asking for both the Android and the iOS app, in case there is a different way, for each platform.

 

Thank you in advance for your help on this!

icon

Best answer by sharif 20 March 2024, 18:38

View original

This post has been closed for comments

1 reply

Userlevel 5
Badge +9

Hey @Radu S,

Unfortunately I don’t have a great solution for you here. We do it at RevenueCat by saving and looking up the customer’s history of purchases to determine what the price of the next renewal will be. You’d have to implement your own system for doing this, potentially by saving their original price on the device or server and looking it up. Alternatively, you can leave the price information off and direct users to go to their subscription management settings on their device where all of that info will be. In fact, that’s probably the most accurate way to do this since that’s the source of truth for the user. You do this by navigating to the managementURL: https://www.revenuecat.com/docs/subscription-guidance/managing-subscriptions#using-the-managementurl-to-help-customers-cancel-a-subscription