Skip to main content
Solved

Would RevCat delegate fire after purchase on Paywall v2?

  • February 14, 2025
  • 1 reply
  • 16 views

Forum|alt.badge.img

I’m curious, will the delegate fire after purchase on Paywall feature

Purchases.shared.delegate

func purchases(_ purchases: Purchases, receivedUpdated customerInfo: CustomerInfo) {
//        
}
func showPaywall() {
        let controller = PaywallViewController()
        controller.modalPresentationStyle = .fullScreen
        controller.delegate = self

        present(controller, animated: true, completion: nil)
}

extension ViewController: PaywallViewControllerDelegate {
    public func paywallViewController(_ controller: PaywallViewController, didFinishPurchasingWith customerInfo: CustomerInfo) {
        print("test")
    }
}

 

Best answer by jeffrey_bunn

Hi ​@Artem10919 - the delegate should fire after Paywall purchases/restores on the current device. Please let us know if you encounter issues with this.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 244 replies
  • Answer
  • February 18, 2025

Hi ​@Artem10919 - the delegate should fire after Paywall purchases/restores on the current device. Please let us know if you encounter issues with this.


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