Interface IEconomyPurchasesApiClientApi
The Purchases methods allow you to make virtual and real world purchases.
Namespace: Unity.Services.Economy
Assembly: solution.dll
Syntax
public interface IEconomyPurchasesApiClientApi
Methods
Name | Description |
---|---|
MakeVirtualPurchaseAsync(string, MakeVirtualPurchaseOptions) | Makes the specified virtual purchase using the items in the players inventory. Takes a virtualPurchaseId. This is the ID of the purchase to make.
Takes an optional list of instanceIds. These are the Throws a EconomyException with a reason code and explanation if the request is badly formed, unauthorized or uses a missing resource. |
RedeemAppleAppStorePurchaseAsync(RedeemAppleAppStorePurchaseArgs) | Redeems the specified Apple App Store purchase. Throws a EconomyException with a reason code and explanation |
RedeemGooglePlayPurchaseAsync(RedeemGooglePlayStorePurchaseArgs) | Redeems the specified Google Play Store Store purchase. Throws a EconomyException with a reason code and explanation |