Enum PurchaseFailureReason
The various reasons a purchase can fail.
Namespace: UnityEngine.Purchasing
Assembly: Unity.Purchasing.dll
Syntax
public enum PurchaseFailureReason
Fields
| Name | Description |
|---|---|
| DuplicateTransaction | The transaction has already been completed successfully. The purchase has already been confirmed. |
| ExistingPurchasePending | Another purchase is already in progress. |
| PaymentDeclined | There was a problem with the payment. This is unique to Apple platforms. |
| ProductUnavailable | The product was reported unavailable by the purchasing system. |
| PurchaseMissing | The billing client responded with OK without including the purchase. This is unique to the Google Play Store. |
| PurchasingUnavailable | Purchasing may be disabled in security settings. |
| SignatureInvalid | Signature validation of the purchase's receipt failed. |
| StoreNotConnected | The purchase couldn't be initiated because the store is not connected. Use IStoreService.Connect() to initialize the connection to the store. |
| Unknown | 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. |
| UserCancelled | 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. |
| ValidationFailure | Transaction failed verification performed by the TX Verifier service. |