Skip to main content
Solved

Lifetime/Non-Consumable Product shows currentPrice null for REST api/purchases-js

  • November 14, 2024
  • 4 replies
  • 32 views

Forum|alt.badge.img+3

I’m having issues with a lifetime product I’m trying to setup here. This is my configuration:

However, the returned `currentPrice` shows `null`:

I don’t see any other way to retrieve the prices using the API either. Am I missing something here? 

Best answer by mooselliot

Alright embarrassing, but I’ve found the fix - an update to @revenuecat/purchases-js did the trick!

View original
Did this post help you find an answer to your question?
This post has been closed for comments

4 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 501 replies
  • November 18, 2024

Hey ​@mooselliot!

I’m successfully seeing the price for that product from the products API. Are you seeing the same, now?


Forum|alt.badge.img+3
  • Author
  • Helper
  • 5 replies
  • November 19, 2024

Hey Cody, I just checked and I’m still not seeing the current_price

I’ve tried deleting and creating a new one too:

 


Forum|alt.badge.img+3
  • Author
  • Helper
  • 5 replies
  • November 19, 2024

If it helps, the issue seems to be related to the fact that it is either a consumable or non-consumable. For subscriptions, the current_price property will be set. From the sdk types, currentPrice is a non-nullable property, so I’m guessing this is a bug on the api side 🙈


Forum|alt.badge.img+3
  • Author
  • Helper
  • 5 replies
  • Answer
  • November 19, 2024

Alright embarrassing, but I’ve found the fix - an update to @revenuecat/purchases-js did the trick!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings