Viewing Purchased Products
There are several ways to view which product was purchased as a result of a paywall presentation.
When a paywall is presenting and a user converts, you can view the purchased products in several different ways.
Use the PaywallPresentationHandler
Arguably the easiest of the options — simply pass in a presentation handler and check out the product within the onDismiss
block.
Use SuperwallDelegate
Next, the SuperwallDelegate offers up much more information, and can inform you of virtually any Superwall event that occurred:
Use a purchase controller
If you are controlling the purchasing pipeline yourself via a purchase controller, then naturally the purchased product is available:
SwiftUI - Use PaywallView
The PaywallView
allows you to show a paywall by sending it a placement. It also has a dismiss handler where the purchased product will be vended:
How is this guide?
Using the Presentation Handler When Presenting Paywalls
The `PaywallPresentationHandler` enables you to monitor and respond to key events during paywall presentation, such as when a paywall is displayed, dismissed, encounters an error, or is skipped.
Retrieving and Presenting a Paywall Yourself
Use this technique to get an instance of a paywall manually, using either UIKit, SwiftUI, or Jetpack Compose.