private static async Task <string> GetPromoCodeAsync(int invoiceId, string token) { PurchaseResult result = await Digiseller.GetPurchaseAsync(invoiceId, token); return(result.Info.PromoCode); }
private static async Task <string> GetTokenAsync(string login, string password, string sellerSecret) { TokenResult result = await Digiseller.GetTokenAsync(login, password, sellerSecret); return(result.Token); }