Interface IWindowsIAPCallback
Interface for Universal Windows Platform purchasing callbacks.
Namespace: UnityEngine.Purchasing.Default
Syntax
public interface IWindowsIAPCallback
Methods
log(String)
Call used to log messsages during the callbacks in this interface.
Declaration
void log(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to be logged. |
logError(String)
Call used to log various errors during the callbacks in this interface.
Declaration
void logError(string error)
Parameters
Type | Name | Description |
---|---|---|
String | error | The error message to be logged. |
OnProductListError(String)
Callback received when receiving an error when attempting to get the list of products.
Declaration
void OnProductListError(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message explaining the failure. |
OnProductListReceived(WinProductDescription[])
Callback received when receiving the list of products.
Declaration
void OnProductListReceived(WinProductDescription[] winProducts)
Parameters
Type | Name | Description |
---|---|---|
WinProductDescription[] | winProducts | The products retrieved. |
OnPurchaseFailed(String, String)
Callback received after making a failed purchase.
Declaration
void OnPurchaseFailed(string productId, string error)
Parameters
Type | Name | Description |
---|---|---|
String | productId | The ID of the product purchased. |
String | error | The error explaining the failure. |
OnPurchaseSucceeded(String, String, String)
Callback received after making a successful purchase.
Declaration
void OnPurchaseSucceeded(string productId, string receipt, string transactionId)
Parameters
Type | Name | Description |
---|---|---|
String | productId | The ID of the product purchased. |
String | receipt | The receipt of the purchase. |
String | transactionId | The ID of the transaction event. |