Skip to main content
Answer

Would RevCat delegate fire after purchase on Paywall v2?

  • February 14, 2025
  • 1 reply
  • 54 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.

This post has been closed for comments

1 reply

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 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.