Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StoreSpecificPurchaseErrorCode.cs 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. namespace UnityEngine.Purchasing
  2. {
  3. /// <summary>
  4. /// The various reasons a purchase can fail. These codes are store-specific, so that developers can have access to
  5. /// to a wider range of debugging information.
  6. /// </summary>
  7. public enum StoreSpecificPurchaseErrorCode
  8. {
  9. /// <summary>
  10. /// Error code indicating that an unknown or unexpected error occurred. (Apple only)
  11. /// </summary>
  12. SKErrorUnknown,
  13. /// <summary>
  14. /// Error code indicating that the client is not allowed to perform the attempted action. (Apple only)
  15. /// </summary>
  16. SKErrorClientInvalid,
  17. /// <summary>
  18. /// Error code indicating that the user cancelled a payment request. (Apple only)
  19. /// </summary>
  20. SKErrorPaymentCancelled,
  21. /// <summary>
  22. /// Error code indicating that one of the payment parameters was not recognized by the App Store. (Apple only)
  23. /// </summary>
  24. SKErrorPaymentInvalid,
  25. /// <summary>
  26. /// Error code indicating that the user is not allowed to authorize payments. (Apple only)
  27. /// </summary>
  28. SKErrorPaymentNotAllowed,
  29. /// <summary>
  30. /// Error code indicating that the requested product is not available in the store. (Apple only)
  31. /// </summary>
  32. SKErrorStoreProductNotAvailable,
  33. /// <summary>
  34. /// Error code indicating that the user has not allowed access to Cloud service information. (Apple only)
  35. /// </summary>
  36. SKErrorCloudServicePermissionDenied,
  37. /// <summary>
  38. /// Error code indicating that the device could not connect to the network. (Apple only)
  39. /// </summary>
  40. SKErrorCloudServiceNetworkConnectionFailed,
  41. /// <summary>
  42. /// Error code indicating that the user has revoked permission to use this cloud service. (Apple only)
  43. /// </summary>
  44. SKErrorCloudServiceRevoked,
  45. /// <summary>
  46. /// Success. Note, this is technically not an error code, but is included for completeness. (Google Play only)
  47. /// </summary>
  48. BILLING_RESPONSE_RESULT_OK,
  49. /// <summary>
  50. /// User pressed back or canceled a dialog. (Google Play only)
  51. /// </summary>
  52. BILLING_RESPONSE_RESULT_USER_CANCELED,
  53. /// <summary>
  54. /// Network connection is down. (Google Play only)
  55. /// </summary>
  56. BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE,
  57. /// <summary>
  58. /// Billing API version is not supported for the type requested. (Google Play only)
  59. /// </summary>
  60. BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE,
  61. /// <summary>
  62. /// Requested product is not available for purchase. (Google Play only)
  63. /// </summary>
  64. BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE,
  65. /// <summary>
  66. /// 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)
  67. /// </summary>
  68. BILLING_RESPONSE_RESULT_DEVELOPER_ERROR,
  69. /// <summary>
  70. /// Fatal error during the API action. (Google Play only)
  71. /// </summary>
  72. BILLING_RESPONSE_RESULT_ERROR,
  73. /// <summary>
  74. /// Failure to purchase since item is already owned. (Google Play only)
  75. /// </summary>
  76. BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED,
  77. /// <summary>
  78. /// Failure to consume since item is not owned. (Google Play only)
  79. /// </summary>
  80. BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED,
  81. // IAB HELPER ERROR CODES
  82. /// <summary>
  83. /// In-App Billing helper base error. (GooglePlay only)
  84. /// </summary>
  85. IABHELPER_ERROR_BASE,
  86. /// <summary>
  87. /// In-App Billing helper encountered a remote exception. (GooglePlay only)
  88. /// </summary>
  89. IABHELPER_REMOTE_EXCEPTION,
  90. /// <summary>
  91. /// In-App Billing helper received a bad response. (GooglePlay only)
  92. /// </summary>
  93. IABHELPER_BAD_RESPONSE,
  94. /// <summary>
  95. /// In-App Billing helper had a failed verification. (GooglePlay only)
  96. /// </summary>
  97. IABHELPER_VERIFICATION_FAILED,
  98. /// <summary>
  99. /// In-App Billing helper found a failed intent. (GooglePlay only)
  100. /// </summary>
  101. IABHELPER_SEND_INTENT_FAILED,
  102. /// <summary>
  103. /// In-App Billing helper encountered a user cancellation. (GooglePlay only)
  104. /// </summary>
  105. IABHELPER_USER_CANCELLED,
  106. /// <summary>
  107. /// In-App Billing helper receieved an unknown purchase response. (GooglePlay only)
  108. /// </summary>
  109. IABHELPER_UNKNOWN_PURCHASE_RESPONSE,
  110. /// <summary>
  111. /// In-App Billing helper is missing a token. (GooglePlay only)
  112. /// </summary>
  113. IABHELPER_MISSING_TOKEN,
  114. /// <summary>
  115. /// In-App Billing helper encountered an unknown error. (GooglePlay only)
  116. /// </summary>
  117. IABHELPER_UNKNOWN_ERROR,
  118. /// <summary>
  119. /// In-App Billing helper has no subscriptions available. (GooglePlay only)
  120. /// </summary>
  121. IABHELPER_SUBSCRIPTIONS_NOT_AVAILABLE,
  122. /// <summary>
  123. /// In-App Billing helper attempted to consume an invalid purchase. (GooglePlay only)
  124. /// </summary>
  125. IABHELPER_INVALID_CONSUMPTION,
  126. /// <summary>
  127. /// Indicates that the customer already owns the provided SKU. (Amazon only)
  128. /// </summary>
  129. Amazon_ALREADY_PURCHASED,
  130. /// <summary>
  131. /// Indicates that the purchase failed. (Amazon only)
  132. /// </summary>
  133. Amazon_FAILED,
  134. /// <summary>
  135. /// Indicates that the SKU originally provided to the PurchasingService.purchase(String) method is not valid. (Amazon only)
  136. /// </summary>
  137. Amazon_INVALID_SKU,
  138. /// <summary>
  139. /// Indicates this call is not supported. (Amazon only)
  140. /// </summary>
  141. Amazon_NOT_SUPPORTED,
  142. /// <summary>
  143. /// A catch-all for remaining purchase problems.
  144. /// </summary>
  145. Unknown
  146. }
  147. }