purchase(confirmIn:options:)
Processes a purchase for the product.
Declaration
func purchase(confirmIn viewController: UIViewController, options: Set<Product.PurchaseOption> = []) async throws -> Product.PurchaseResultParameters
- viewController:
The view controller to show purchase confirmation UI in proximity to.
- options:
A set of options to configure the purchase.
Return Value
The result of the purchase