docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum StoreSpecificPurchaseErrorCode

    The various reasons a purchase can fail. These codes are store-specific, so that developers can have access to to a wider range of debugging information.

    Namespace: UnityEngine.Purchasing
    Assembly: UnityEngine.Purchasing.Stores.dll
    Syntax
    public enum StoreSpecificPurchaseErrorCode

    Fields

    Name Description
    Amazon_ALREADY_PURCHASED

    Indicates that the customer already owns the provided SKU. (Amazon only)

    Amazon_FAILED

    Indicates that the purchase failed. (Amazon only)

    Amazon_INVALID_SKU

    Indicates that the SKU originally provided to the PurchasingService.purchase(String) method is not valid. (Amazon only)

    Amazon_NOT_SUPPORTED

    Indicates this call is not supported. (Amazon only)

    BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE

    Billing API version is not supported for the type requested. (Google Play only)

    BILLING_RESPONSE_RESULT_DEVELOPER_ERROR

    Invalid arguments provided to the API. This error can also indicate that the application was not correctly signed or properly set up for In-app Billing in Google Play, or does not have the necessary permissions in its manifest (Google Play only)

    BILLING_RESPONSE_RESULT_ERROR

    Fatal error during the API action. (Google Play only)

    BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED

    Failure to purchase since item is already owned. (Google Play only)

    BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED

    Failure to consume since item is not owned. (Google Play only)

    BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE

    Requested product is not available for purchase. (Google Play only)

    BILLING_RESPONSE_RESULT_OK

    Success. Note, this is technically not an error code, but is included for completeness. (Google Play only)

    BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE

    Network connection is down. (Google Play only)

    BILLING_RESPONSE_RESULT_USER_CANCELED

    User pressed back or canceled a dialog. (Google Play only)

    IABHELPER_BAD_RESPONSE

    In-App Billing helper received a bad response. (GooglePlay only)

    IABHELPER_ERROR_BASE

    In-App Billing helper base error. (GooglePlay only)

    IABHELPER_INVALID_CONSUMPTION

    In-App Billing helper attempted to consume an invalid purchase. (GooglePlay only)

    IABHELPER_MISSING_TOKEN

    In-App Billing helper is missing a token. (GooglePlay only)

    IABHELPER_REMOTE_EXCEPTION

    In-App Billing helper encountered a remote exception. (GooglePlay only)

    IABHELPER_SEND_INTENT_FAILED

    In-App Billing helper found a failed intent. (GooglePlay only)

    IABHELPER_SUBSCRIPTIONS_NOT_AVAILABLE

    In-App Billing helper has no subscriptions available. (GooglePlay only)

    IABHELPER_UNKNOWN_ERROR

    In-App Billing helper encountered an unknown error. (GooglePlay only)

    IABHELPER_UNKNOWN_PURCHASE_RESPONSE

    In-App Billing helper receieved an unknown purchase response. (GooglePlay only)

    IABHELPER_USER_CANCELLED

    In-App Billing helper encountered a user cancellation. (GooglePlay only)

    IABHELPER_VERIFICATION_FAILED

    In-App Billing helper had a failed verification. (GooglePlay only)

    SKErrorClientInvalid

    Error code indicating that the client is not allowed to perform the attempted action. (Apple only)

    SKErrorCloudServiceNetworkConnectionFailed

    Error code indicating that the device could not connect to the network. (Apple only)

    SKErrorCloudServicePermissionDenied

    Error code indicating that the user has not allowed access to Cloud service information. (Apple only)

    SKErrorCloudServiceRevoked

    Error code indicating that the user has revoked permission to use this cloud service. (Apple only)

    SKErrorPaymentCancelled

    Error code indicating that the user cancelled a payment request. (Apple only)

    SKErrorPaymentInvalid

    Error code indicating that one of the payment parameters was not recognized by the App Store. (Apple only)

    SKErrorPaymentNotAllowed

    Error code indicating that the user is not allowed to authorize payments. (Apple only)

    SKErrorStoreProductNotAvailable

    Error code indicating that the requested product is not available in the store. (Apple only)

    SKErrorUnknown

    Error code indicating that an unknown or unexpected error occurred. (Apple only)

    Unknown

    A catch-all for remaining purchase problems.


    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Fields
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)