Contents

buyProduct(productIdentifier:)

Simulates buying an in-app purchase or subscription outside the app.

Declaration

func buyProduct(productIdentifier: String) throws

Parameters

  • productIdentifier:

    Product identifier of the in-app purchase.

Discussion

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

See Also

Testing externally performed transactions