Ejemplo n.º 1
0
        /// <summary>
        /// Illustrate Member.getTransactions
        /// </summary>
        /// <param name="payer">payer Token member</param>
        public static void getTransactionsSample(UserMember payer)
        {
            List <Tokenio.User.Account> accounts = payer.GetAccountsBlocking().ToList();
            string accountId = accounts[0].Id();

            foreach (Transaction transaction in payer.GetTransactionsBlocking(accountId, 10, Level.Standard, null).List)
            {
                DisplayTransaction(
                    transaction.Amount.Currency,
                    transaction.Amount.Value,
                    transaction.Type, // debit or credit
                    transaction.Status);
            }
        }