Skip to main content
Answer

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

  • November 14, 2024
  • 4 replies
  • 93 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!

This post has been closed for comments

4 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 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
  • 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
  • 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
  • Answer
  • November 19, 2024

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