namespace UnityEngine.Purchasing
{
///
/// 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.
///
public enum StoreSpecificPurchaseErrorCode
{
///
/// Error code indicating that an unknown or unexpected error occurred. (Apple only)
///
SKErrorUnknown,
///
/// Error code indicating that the client is not allowed to perform the attempted action. (Apple only)
///
SKErrorClientInvalid,
///
/// Error code indicating that the user cancelled a payment request. (Apple only)
///
SKErrorPaymentCancelled,
///
/// Error code indicating that one of the payment parameters was not recognized by the App Store. (Apple only)
///
SKErrorPaymentInvalid,
///
/// Error code indicating that the user is not allowed to authorize payments. (Apple only)
///
SKErrorPaymentNotAllowed,
///
/// Error code indicating that the requested product is not available in the store. (Apple only)
///
SKErrorStoreProductNotAvailable,
///
/// Error code indicating that the user has not allowed access to Cloud service information. (Apple only)
///
SKErrorCloudServicePermissionDenied,
///
/// Error code indicating that the device could not connect to the network. (Apple only)
///
SKErrorCloudServiceNetworkConnectionFailed,
///
/// Error code indicating that the user has revoked permission to use this cloud service. (Apple only)
///
SKErrorCloudServiceRevoked,
///
/// Success. Note, this is technically not an error code, but is included for completeness. (Google Play only)
///
BILLING_RESPONSE_RESULT_OK,
///
/// User pressed back or canceled a dialog. (Google Play only)
///
BILLING_RESPONSE_RESULT_USER_CANCELED,
///
/// Network connection is down. (Google Play only)
///
BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE,
///
/// Billing API version is not supported for the type requested. (Google Play only)
///
BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE,
///
/// Requested product is not available for purchase. (Google Play only)
///
BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE,
///
/// 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_DEVELOPER_ERROR,
///
/// Fatal error during the API action. (Google Play only)
///
BILLING_RESPONSE_RESULT_ERROR,
///
/// Failure to purchase since item is already owned. (Google Play only)
///
BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED,
///
/// Failure to consume since item is not owned. (Google Play only)
///
BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED,
// IAB HELPER ERROR CODES
///
/// In-App Billing helper base error. (GooglePlay only)
///
IABHELPER_ERROR_BASE,
///
/// In-App Billing helper encountered a remote exception. (GooglePlay only)
///
IABHELPER_REMOTE_EXCEPTION,
///
/// In-App Billing helper received a bad response. (GooglePlay only)
///
IABHELPER_BAD_RESPONSE,
///
/// In-App Billing helper had a failed verification. (GooglePlay only)
///
IABHELPER_VERIFICATION_FAILED,
///
/// In-App Billing helper found a failed intent. (GooglePlay only)
///
IABHELPER_SEND_INTENT_FAILED,
///
/// In-App Billing helper encountered a user cancellation. (GooglePlay only)
///
IABHELPER_USER_CANCELLED,
///
/// In-App Billing helper receieved an unknown purchase response. (GooglePlay only)
///
IABHELPER_UNKNOWN_PURCHASE_RESPONSE,
///
/// In-App Billing helper is missing a token. (GooglePlay only)
///
IABHELPER_MISSING_TOKEN,
///
/// In-App Billing helper encountered an unknown error. (GooglePlay only)
///
IABHELPER_UNKNOWN_ERROR,
///
/// In-App Billing helper has no subscriptions available. (GooglePlay only)
///
IABHELPER_SUBSCRIPTIONS_NOT_AVAILABLE,
///
/// In-App Billing helper attempted to consume an invalid purchase. (GooglePlay only)
///
IABHELPER_INVALID_CONSUMPTION,
///
/// Indicates that the customer already owns the provided SKU. (Amazon only)
///
Amazon_ALREADY_PURCHASED,
///
/// Indicates that the purchase failed. (Amazon only)
///
Amazon_FAILED,
///
/// Indicates that the SKU originally provided to the PurchasingService.purchase(String) method is not valid. (Amazon only)
///
Amazon_INVALID_SKU,
///
/// Indicates this call is not supported. (Amazon only)
///
Amazon_NOT_SUPPORTED,
///
/// A catch-all for remaining purchase problems.
///
Unknown
}
}