private void Consume(AN_Purchase purchase) { var paramsBuilder = AN_ConsumeParams.NewBuilder(); paramsBuilder.SetPurchaseToken(purchase.PurchaseToken); m_BillingClient.ConsumeAsync(paramsBuilder.Build(), this); }
public void Consume(string purchaseToken, Action <SA_iResult> callback) { m_OnConsumeCallback = callback; var paramsBuilder = AN_ConsumeParams.NewBuilder(); paramsBuilder.SetPurchaseToken(purchaseToken); m_BillingClient.ConsumeAsync(paramsBuilder.Build(), this); }