/// <summary>
        /// Returns Transaction details for a given transaction ID (transid)
        /// </summary>
        /// <param name="transactionID"></param>
        public Transaction GetTransactionDetails(string transactionID)
        {
            var req = new getTransactionDetailsRequest();

            req.transId = transactionID;
            var response = (getTransactionDetailsResponse)_gateway.Send(req);

            return(Transaction.NewFromResponse(response.transaction));
        }
Example #2
0
        /// <summary>
        /// Creates a list of Transactions directly from the API Response.
        /// </summary>
        /// <param name="transactions">The transactions.</param>
        /// <returns></returns>
        public static List <Transaction> NewListFromResponse(transactionSummaryType[] transactions)
        {
            var result = new List <Transaction>();

            if (transactions != null)
            {
                for (int i = 0; i < transactions.Length; i++)
                {
                    result.Add(Transaction.NewFromResponse(transactions[i]));
                }
            }
            return(result);
        }