# `PurchaseErrorCode` - class Represents the error codes for `PurchaseError`.
| ```typescript unknown: "unknown" ``` | Unknow error during the API action. |
| ```typescript canceled: "canceled" ``` | User pressed back or canceled a dialog. |
| ```typescript productAlreadyOwned: "product_already_owned" ``` | Failure to purchase since item is already owned. |
| ```typescript productUnavailable: "product_not_available" ``` | Requested product is not available for purchase. |
| ```typescript userNotAuthorized: "user_not_authorized" ``` | iOS only: The user is not allowed to authorize payments. |