- getErrorCode(error): ErrorCode | undefined
-
Parameters
-
error: "unknown" | "clientInvalid" | "paymentCancelled" | "paymentInvalid" | "paymentNotAllowed" | "storeProductNotAvailable" | "cloudServicePermissionDenied" | "cloudServiceNetworkConnectionFailed" | "cloudServiceRevoked" | "privacyAcknowledgementRequired" | "unauthorizedRequestData" | "invalidOfferIdentifier" | "invalidSignature" | "missingOfferParams" | "invalidOfferPrice" | "adaptyNotInitialized" | "productNotFound" | "currentSubscriptionToUpdateNotFoundInHistory" | "pendingPurchase" | "billingServiceTimeout" | "featureNotSupported" | "billingServiceDisconnected" | "billingServiceUnavailable" | "billingUnavailable" | "developerError" | "billingError" | "itemAlreadyOwned" | "itemNotOwned" | "billingNetworkError" | "noProductIDsFound" | "productRequestFailed" | "cantMakePayments" | "noPurchasesToRestore" | "cantReadReceipt" | "productPurchaseFailed" | "refreshReceiptFailed" | "receiveRestoredTransactionsFailed" | "notActivated" | "badRequest" | "serverError" | "networkFailed" | "decodingFailed" | "encodingFailed" | "analyticsDisabled" | "wrongParam" | "activateOnceError" | "profileWasChanged" | "unsupportedData" | "persistingDataError" | "fetchTimeoutError" | "operationInterrupted"
Returns ErrorCode | undefined