示例#1
0
        private static async Task <string> GetPromoCodeAsync(int invoiceId, string token)
        {
            PurchaseResult result = await Digiseller.GetPurchaseAsync(invoiceId, token);

            return(result.Info.PromoCode);
        }
示例#2
0
        private static async Task <string> GetTokenAsync(string login, string password, string sellerSecret)
        {
            TokenResult result = await Digiseller.GetTokenAsync(login, password, sellerSecret);

            return(result.Token);
        }