Contents

buyProduct(productIdentifier:)

Simulates buying an Apple In-App Purchase or subscription outside the app.

Declaration

func buyProduct(productIdentifier: String) throws

Parameters

  • productIdentifier:

    Product identifier of the Apple In-App Purchase.

Discussion

After calling this function, handle the new transaction in your payment queue.

See Also

Testing externally performed transactions