Exemplo n.º 1
0
        public void GetTransactionTest() //TODO
        {
            var response = api.GetTransaction <object>(new Apis.Requests.GetTransactionRequest {
                Id = "transaction id"
            });

            Assert.True(response.Success);
        }
Exemplo n.º 2
0
        static string GetTransactionFromErrorMessageExample(Configuration configuration)
        {
            // Please see https://docs.transferzero.com/docs/transaction-flow/#receiving-error-messages
            // on details about error messages

            Guid transationId = Guid.Parse("2cf44191-ffff-ffff-ffff-f0d133a709f1");

            TransactionsApi transactionsApi = new TransactionsApi(configuration);

            TransactionResponse response = transactionsApi.GetTransaction(transactionID: transationId);

            System.Console.WriteLine("Payout error message on recipient: " + response.Object.Recipients[0].StateReason);

            return(response.Object.Recipients[0].StateReason);
        }