Skip to main content
Question

wheres the documentation for PaywallView()

  • December 27, 2024
  • 1 reply
  • 36 views

Forum|alt.badge.img+4

Presenting paywall manually so can hide the close button. 

PaywallView(displayCloseButton: false)

i just can’t find any documentation regarding this in the SDK. specifically its modifiers such as .onRestoreCompleted

currently in the code block after restore I dismiss the paywall. Unfortunately the restore is successful if user made a legacy purchase. App has moved to subscription so legacy purchases need to be ignored and prevent from dismissing paywall. Only the subscription purchases should dismiss. 

please help me locate the documentation for .onRestoreCompleted View modifier 

This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • December 31, 2024

Hi ​@t1esto,

The `onRestoreCompleted` modifier performs the `restorePurchases` function under the hood, you can find the documentation for restore here.

A possible solution to your case would be to remove the entitlement from the legacy product, since the paywall will look at the user’s entitlement you can just remove it or set a different one to avoid the paywall dismissal.

Let me know if that works!


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