IAPPurchaseDelegate

public protocol IAPPurchaseDelegate

The protocol that you must adopt if you have consumable and/or non-renewing subscription products.

  • Called when a product is newly purchased, updated or restored.

    Important

    You have to acknowledge delivery of the (virtual) item to finalize the transaction. Then you have to call InAppPurchase.finishTransactions(for: productIdentifier)as soon as you have delivered the product.

    Declaration

    Swift

    func productPurchased(productIdentifier: String)

    Parameters

    productIdentifier

    The identifier of the product.