Exemplo n.º 1
0
        public static void Run()
        {
            try
            {
                var id = "Owcyk6pl";

                var configDictionary = new Configuration().GetConfiguration();
                var clientConfig     = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary);
                var apiInstance      = new TransactionBatchesApi(clientConfig);

                var result = apiInstance.GetTransactionBatchId(id);
                Console.WriteLine(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API: " + e.Message);
            }
        }
        public static PtsV1TransactionBatchesIdGet200Response Run()
        {
            try
            {
                var id = "12345";

                var configDictionary = new Configuration().GetConfiguration();
                var clientConfig     = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary);

                var apiInstance = new TransactionBatchesApi(clientConfig);
                PtsV1TransactionBatchesIdGet200Response result = apiInstance.GetTransactionBatchId(id);
                Console.WriteLine(result);
                return(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API : " + e.Message);
                return(null);
            }
        }