Skip to main content
Answer

Two separate paywalls

  • July 28, 2024
  • 1 reply
  • 327 views

Forum|alt.badge.img+1

Hello,

I want to have two separate paywalls for my app. One for subscriptions and for one one-time purchases. I have created both paywalls in my RevenueCat account. However, when I use the RevenueCatUI.presentPaywallIfNeeded() function with different strings for offering identifiers, I get every time the default offering. In other words, the second paywall does not show even through I have put the correct offering identifier. Do you know how to achieve the behavior I described above?

Best answer by Marxwil

Solved, just do not use RevenueCatUI.presentPaywallIfNeeded(). Use RevenueCatUI.presentPaywall() instead and specify the offering you want that twill override the behavior. You can get the offering through Purchases.getOfferings() API and then select the one you need.

This post has been closed for comments

1 reply

Forum|alt.badge.img+1
  • Author
  • Helper
  • Answer
  • July 29, 2024

Solved, just do not use RevenueCatUI.presentPaywallIfNeeded(). Use RevenueCatUI.presentPaywall() instead and specify the offering you want that twill override the behavior. You can get the offering through Purchases.getOfferings() API and then select the one you need.