Created
July 20, 2021 17:02
-
-
Save geor-kasapidi/031dfdb7cf752d4f415b5c22cc610218 to your computer and use it in GitHub Desktop.
SKError codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@available(iOS 3.0, *) | |
public enum Code : Int { | |
public typealias _ErrorType = SKError | |
case unknown = 0 | |
case clientInvalid = 1 // client is not allowed to issue the request, etc. | |
case paymentCancelled = 2 // user cancelled the request, etc. | |
case paymentInvalid = 3 // purchase identifier was invalid, etc. | |
case paymentNotAllowed = 4 // this device is not allowed to make the payment | |
@available(iOS 3.0, *) | |
case storeProductNotAvailable = 5 // Product is not available in the current storefront | |
@available(iOS 9.3, *) | |
case cloudServicePermissionDenied = 6 // user has not allowed access to cloud service information | |
@available(iOS 9.3, *) | |
case cloudServiceNetworkConnectionFailed = 7 // the device could not connect to the nework | |
@available(iOS 10.3, *) | |
case cloudServiceRevoked = 8 // user has revoked permission to use this cloud service | |
@available(iOS 12.2, *) | |
case privacyAcknowledgementRequired = 9 // The user needs to acknowledge Apple's privacy policy | |
@available(iOS 12.2, *) | |
case unauthorizedRequestData = 10 // The app is attempting to use SKPayment's requestData property, but does not have the appropriate entitlement | |
@available(iOS 12.2, *) | |
case invalidOfferIdentifier = 11 // The specified subscription offer identifier is not valid | |
@available(iOS 12.2, *) | |
case invalidSignature = 12 // The cryptographic signature provided is not valid | |
@available(iOS 12.2, *) | |
case missingOfferParams = 13 // One or more parameters from SKPaymentDiscount is missing | |
@available(iOS 12.2, *) | |
case invalidOfferPrice = 14 // The price of the selected offer is not valid (e.g. lower than the current base subscription price) | |
@available(iOS 12.2, *) | |
case overlayCancelled = 15 | |
@available(iOS 14.0, *) | |
case overlayInvalidConfiguration = 16 | |
@available(iOS 14.0, *) | |
case overlayTimeout = 17 | |
@available(iOS 14.0, *) | |
case ineligibleForOffer = 18 // User is not eligible for the subscription offer | |
@available(iOS 14.0, *) | |
case unsupportedPlatform = 19 | |
@available(iOS 14.5, *) | |
case overlayPresentedInBackgroundScene = 20 // Client tried to present an SKOverlay in UIWindowScene not in the foreground | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment