/// <summary> /// Track a new purchase in your app /// </summary> /// <param name="playerId">Player id to add a new session to</param> /// <param name="options">Parameters for creating a new purchase</param> /// <returns>Status of new purchase request</returns> public GenericResponse NewPurchase(string playerId, NewPurchaseOptions options) { var response = Post <GenericResponse>($"players/{playerId}/on_purchase", options); response.Id = playerId; return(response); }
/// <summary> /// Track a new purchase in your app /// </summary> /// <param name="playerId">Player id to add a new session to</param> /// <param name="options">Parameters for creating a new purchase</param> /// <returns>Status of new purchase request</returns> public async Task <GenericResponse> NewPurchaseAsync(string playerId, NewPurchaseOptions options) { var response = await PostAsync <GenericResponse>($"players/{playerId}/on_purchase", options); response.Id = playerId; return(response); }