PurchaseFailureReason.cs
1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
namespace UnityEngine.Purchasing
{
/// <summary>
/// The various reasons a purchase can fail.
/// </summary>
public enum PurchaseFailureReason
{
/// <summary>
/// Purchasing may be disabled in security settings.
/// </summary>
PurchasingUnavailable,
/// <summary>
/// Another purchase is already in progress.
/// </summary>
ExistingPurchasePending,
/// <summary>
/// The product was reported unavailable by the purchasing system.
/// </summary>
ProductUnavailable,
/// <summary>
/// Signature validation of the purchase's receipt failed.
/// </summary>
SignatureInvalid,
/// <summary>
/// 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).
/// </summary>
UserCancelled,
/// <summary>
/// There was a problem with the payment.
/// This is unique to Apple platforms.
/// </summary>
PaymentDeclined,
/// <summary>
/// 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.
/// </summary>
DuplicateTransaction,
/// <summary>
/// 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.
/// </summary>
Unknown
}
}