Method OnPurchaseFailed
OnPurchaseFailed(Product, PurchaseFailureReason)
Implementation of UnityEngine.Purchasing.IStoreListener.OnPurchaseFailed.Purchasing.IStoreListener.OnPurchaseFailed
indicating
a purchase failed with specified reason. Send this event to any appropriate registered
IAPButton
s and IAPListener
s.
Logs an error if there are no appropriate registered handlers.
Declaration
public void OnPurchaseFailed(Product product, PurchaseFailureReason reason)
Parameters
Type | Name | Description |
---|---|---|
Product | product | What failed to purchase |
PurchaseFailureReason | reason | Why the purchase failed |
Implements
OnPurchaseFailed(Product, PurchaseFailureDescription)
Implementation of UnityEngine.Purchasing.IDetailedStoreListener.OnPurchaseFailed.Purchasing.IDetailedStoreListener.OnPurchaseFailed
indicating
a purchase failed with a detailed failure description. Send this event to any appropriate registered
IAPButton
s and IAPListener
s.
Logs an error if there are no appropriate registered handlers.
Declaration
public void OnPurchaseFailed(Product product, PurchaseFailureDescription description)
Parameters
Type | Name | Description |
---|---|---|
Product | product | What failed to purchase |
PurchaseFailureDescription | description | Why the purchase failed |