v3.1.2
2020.3+

Class Purchases

Inheritance
Purchases
Namespace: Unity.Services.Economy
Syntax
[Obsolete("The interface provided by Economy.Purchases has been replaced by EconomyService.Instance.Purchases, and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public class Purchases

Methods

MakeVirtualPurchaseAsync(String, MakeVirtualPurchaseOptions)

Declaration
[Obsolete("The interface provided by Economy.Purchases.MakeVirtualPurchaseAsync(string virtualPurchaseId, Services.Economy.MakeVirtualPurchaseOptions options) has been replaced by EconomyService.Instance.Purchases.MakeVirtualPurchaseAsync(string virtualPurchaseId, Services.Economy.MakeVirtualPurchaseOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<MakeVirtualPurchaseResult> MakeVirtualPurchaseAsync(string virtualPurchaseId, MakeVirtualPurchaseOptions options = null)
Parameters
TypeNameDescription
StringvirtualPurchaseId
MakeVirtualPurchaseOptionsoptions
Returns
TypeDescription
Task<MakeVirtualPurchaseResult>

RedeemAppleAppStorePurchaseAsync(Purchases.RedeemAppleAppStorePurchaseArgs)

Declaration
[Obsolete("The interface provided by Economy.Purchases.RedeemAppleAppStorePurchaseAsync(RedeemAppleAppStorePurchaseArgs args) has been replaced by EconomyService.Instance.Purchases.RedeemAppleAppStorePurchaseAsync(RedeemAppleAppStorePurchaseArgs args), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<RedeemAppleAppStorePurchaseResult> RedeemAppleAppStorePurchaseAsync(Purchases.RedeemAppleAppStorePurchaseArgs args)
Parameters
TypeNameDescription
Purchases.RedeemAppleAppStorePurchaseArgsargs
Returns
TypeDescription
Task<RedeemAppleAppStorePurchaseResult>

RedeemGooglePlayPurchaseAsync(Purchases.RedeemGooglePlayStorePurchaseArgs)

Declaration
[Obsolete("The interface provided by Economy.Purchases.RedeemGooglePlayPurchaseAsync(RedeemGooglePlayStorePurchaseArgs args) has been replaced by EconomyService.Instance.Purchases.RedeemGooglePlayPurchaseAsync(RedeemGooglePlayStorePurchaseArgs args), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
public async Task<RedeemGooglePlayPurchaseResult> RedeemGooglePlayPurchaseAsync(Purchases.RedeemGooglePlayStorePurchaseArgs args)
Parameters
TypeNameDescription
Purchases.RedeemGooglePlayStorePurchaseArgsargs
Returns
TypeDescription
Task<RedeemGooglePlayPurchaseResult>