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.

PurchaseFailureReason.cs 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. namespace UnityEngine.Purchasing
  2. {
  3. /// <summary>
  4. /// The various reasons a purchase can fail.
  5. /// </summary>
  6. public enum PurchaseFailureReason
  7. {
  8. /// <summary>
  9. /// Purchasing may be disabled in security settings.
  10. /// </summary>
  11. PurchasingUnavailable,
  12. /// <summary>
  13. /// Another purchase is already in progress.
  14. /// </summary>
  15. ExistingPurchasePending,
  16. /// <summary>
  17. /// The product was reported unavailable by the purchasing system.
  18. /// </summary>
  19. ProductUnavailable,
  20. /// <summary>
  21. /// Signature validation of the purchase's receipt failed.
  22. /// </summary>
  23. SignatureInvalid,
  24. /// <summary>
  25. /// The user opted to cancel rather than proceed with the purchase.
  26. /// This is not specified on platforms that do not distinguish
  27. /// cancellation from other failure (Amazon, Microsoft).
  28. /// </summary>
  29. UserCancelled,
  30. /// <summary>
  31. /// There was a problem with the payment.
  32. /// This is unique to Apple platforms.
  33. /// </summary>
  34. PaymentDeclined,
  35. /// <summary>
  36. /// The transaction has already been completed successfully. This error can occur
  37. /// on Apple platforms if the transaction is finished successfully while the user
  38. /// is logged out of the app store, using a receipt generated while the user was
  39. /// logged in.
  40. /// </summary>
  41. DuplicateTransaction,
  42. /// <summary>
  43. /// A catch all for remaining purchase problems.
  44. /// Note: Use Enum.Parse to use this named constant if targeting Unity 5.3
  45. /// or 5.4. Its value differs for 5.5+ which introduced DuplicateTransaction.
  46. /// </summary>
  47. Unknown
  48. }
  49. }