Skip to main content

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 

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!