Contents

purchase(confirmIn:options:)

Processes a purchase for the product.

Declaration

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

Parameters

  • window:

    The window 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