namespace UnityEngine.Purchasing { /// /// The various reasons a purchase can fail. /// public enum PurchaseFailureReason { /// /// Purchasing may be disabled in security settings. /// PurchasingUnavailable, /// /// Another purchase is already in progress. /// ExistingPurchasePending, /// /// The product was reported unavailable by the purchasing system. /// ProductUnavailable, /// /// Signature validation of the purchase's receipt failed. /// SignatureInvalid, /// /// The user opted to cancel rather than proceed with the purchase. /// This is not specified on platforms that do not distinguish /// cancellation from other failure (Amazon, Microsoft). /// UserCancelled, /// /// There was a problem with the payment. /// This is unique to Apple platforms. /// PaymentDeclined, /// /// The transaction has already been completed successfully. This error can occur /// on Apple platforms if the transaction is finished successfully while the user /// is logged out of the app store, using a receipt generated while the user was /// logged in. /// DuplicateTransaction, /// /// A catch all for remaining purchase problems. /// Note: Use Enum.Parse to use this named constant if targeting Unity 5.3 /// or 5.4. Its value differs for 5.5+ which introduced DuplicateTransaction. /// Unknown } }