Variable ErrorCodeConst

ErrorCode: Readonly<{
    0: "unknown";
    1: "clientInvalid";
    10: "unauthorizedRequestData";
    1000: "noProductIDsFound";
    1002: "productRequestFailed";
    1003: "cantMakePayments";
    1004: "noPurchasesToRestore";
    1005: "cantReadReceipt";
    1006: "productPurchaseFailed";
    1010: "refreshReceiptFailed";
    1011: "receiveRestoredTransactionsFailed";
    11: "invalidOfferIdentifier";
    12: "invalidSignature";
    13: "missingOfferParams";
    14: "invalidOfferPrice";
    2: "paymentCancelled";
    2002: "notActivated";
    2003: "badRequest";
    2004: "serverError";
    2005: "networkFailed";
    2006: "decodingFailed";
    2009: "encodingFailed";
    3: "paymentInvalid";
    3000: "analyticsDisabled";
    3001: "wrongParam";
    3005: "activateOnceError";
    3006: "profileWasChanged";
    3100: "persistingDataError";
    4: "paymentNotAllowed";
    5: "storeProductNotAvailable";
    6: "cloudServicePermissionDenied";
    7: "cloudServiceNetworkConnectionFailed";
    8: "cloudServiceRevoked";
    9: "privacyAcknowledgementRequired";
    9000: "operationInterrupted";
}> = ...

Type declaration

  • 0: "unknown"

    System StoreKit codes

  • 1: "clientInvalid"

    Client is not allowed to make a request, etc.

  • 10: "unauthorizedRequestData"

    The app is attempting to use SKPayment's requestData property, but does not have the appropriate entitlement.

  • 1000: "noProductIDsFound"
  • 1002: "productRequestFailed"
  • 1003: "cantMakePayments"

    In-App Purchases are not allowed on this device.

  • 1004: "noPurchasesToRestore"
  • 1005: "cantReadReceipt"
  • 1006: "productPurchaseFailed"
  • 1010: "refreshReceiptFailed"
  • 1011: "receiveRestoredTransactionsFailed"
  • 11: "invalidOfferIdentifier"

    The specified subscription offer identifier is not valid.

  • 12: "invalidSignature"

    The cryptographic signature provided is not valid.

  • 13: "missingOfferParams"

    One or more parameters from SKPaymentDiscount is missing.

  • 14: "invalidOfferPrice"
  • 2: "paymentCancelled"

    User cancelled the request, etc.

  • 2002: "notActivated"

    Adapty SDK is not activated.

  • 2003: "badRequest"
  • 2004: "serverError"
  • 2005: "networkFailed"
  • 2006: "decodingFailed"
  • 2009: "encodingFailed"
  • 3: "paymentInvalid"

    Invalid purchase identifier, etc.

  • 3000: "analyticsDisabled"
  • 3001: "wrongParam"

    Wrong parameter was passed.

  • 3005: "activateOnceError"

    It is not possible to call .activate method more than once.

  • 3006: "profileWasChanged"

    The user profile was changed during the operation.

  • 3100: "persistingDataError"
  • 4: "paymentNotAllowed"

    This device is not allowed to make the payment.

  • 5: "storeProductNotAvailable"

    Product is not available in the current storefront.

  • 6: "cloudServicePermissionDenied"

    User has not allowed access to cloud service information.

  • 7: "cloudServiceNetworkConnectionFailed"

    The device could not connect to the network.

  • 8: "cloudServiceRevoked"

    User has revoked permission to use this cloud service.

  • 9: "privacyAcknowledgementRequired"

    The user needs to acknowledge Apple's privacy policy.

  • 9000: "operationInterrupted"

Generated using TypeDoc