Interface IWindowsIAPCallback
Interface for Universal Windows Platform purchasing callbacks.
Namespace: UnityEngine .Purchasing.Default
Assembly: solution.dll
Syntax
public interface IWindowsIAPCallback
Methods
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 |
---|---|---|
Win |
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. |
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. |