Contents

purchase(confirmIn:options:)

Processes a purchase for the product.

Declaration

func purchase(confirmIn viewController: UIViewController, options: Set<Product.PurchaseOption> = []) async throws -> Product.PurchaseResult

Parameters

  • 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

Discussion

See Also

Purchasing a product