Method MakePurchaseAsync
MakePurchaseAsync(MakeVirtualPurchaseOptions)
Make this purchase. Optionally takes instance IDs of items to use in the purchase.
Declaration
public Task<MakeVirtualPurchaseResult> MakePurchaseAsync(MakeVirtualPurchaseOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
MakeVirtualPurchaseOptions | options | (Optional) Use to set a list of item instance IDs to use in this purchase |
Returns
Type | Description |
---|---|
Task<MakeVirtualPurchaseResult> | A MakeVirtualPurchaseResult containing details of the purchase |
Exceptions
Type | Condition |
---|---|
EconomyException | Thrown if purchase is unsuccessful |
MakePurchaseAsync(List<PlayersInventoryItem>)
Make this purchase using the PlayersInventoryItems provided to pay the inventory item cost.
Declaration
public Task<MakeVirtualPurchaseResult> MakePurchaseAsync(List<PlayersInventoryItem> playersInventoryItems)
Parameters
Type | Name | Description |
---|---|---|
List<PlayersInventoryItem> | playersInventoryItems | A list of PlayersInventoryItems to use in this purchase |
Returns
Type | Description |
---|---|
Task<MakeVirtualPurchaseResult> | A MakeVirtualPurchaseResult containing details of the purchase |
Exceptions
Type | Condition |
---|---|
EconomyException | Thrown if purchase is unsuccessful |