Instance Method

purchase(package:)

Initiates a purchase of a Package.

Declaration

func purchase(package: Package) async throws -> PurchaseResultData

Parameters

package

The Package the user intends to purchase

Discussion

From here Purchases will handle the purchase with StoreKit and call the PurchaseCompletedBlock.

If the user cancelled, userCancelled will be true.

See Also

Making Purchases