Contents

failureError

The error code that transactions return when you enable failing transactions.

Declaration

var failureError: SKError.Code { get set }

Discussion

You can force an error by setting failTransactionsEnabled to true and setting failureError value to one of these supported error codes: SKError.Code.unknown, SKError.Code.invalidOfferIdentifier, SKError.Code.invalidSignature, SKError.Code.missingOfferParams, SKError.Code.invalidOfferPrice.

Use these settings to test your how your app responds to failed transactions.

See Also

Forcing failed transactions