Skip to main content
Question

Paywall on purchase start callback

  • March 28, 2024
  • 0 replies
  • 143 views

Forum|alt.badge.img

Hi, Iā€™m using Paywalls feature in my SwiftUI App. I want to disable Paywall interactions while purchase is in progress, is there onPurchaseStart callback or something? here is my current implementation:

                .sheet(isPresented: $userViewModel.displayPayWall) {
                    PaywallView(displayCloseButton: true)
                        .onPurchaseCompleted({ userInfo in
                            print("completed")
                            userViewModel.isPurchasing = false
                            userViewModel.isSubscriptionActive = userInfo.entitlements["pro"]?.isActive ?? false
                        })
                        .interactiveDismissDisabled(userViewModel.isPurchasing)
                }

 

This post has been closed for comments

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