Contents

purchase(compactJWS:confirmIn:options:)

Processes a purchase for the product.

Declaration

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

Parameters

  • compactJWS:

    The compact JSON Web Signature (JWS) string for the operation.

  • viewController:

    The window the system uses to display purchase confirmation UI in proximity to.

  • options:

    A set of purchase options.

Return Value

The result of the purchase.

Discussion

See Also

Initiating purchases