Beispiel #1
0
        public static void Run()
        {
            var id = "5f6b1f07-0190-460b-852e-6766252fbb18";

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

                var result = apiInstance.GetSearch(id);
                Console.WriteLine(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API: " + e.Message);
            }
        }
Beispiel #2
0
        public static void Run()
        {
            var id = "cd46194f-b41f-4084-990a-7ea1f28aa831";

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

                var result = apiInstance.GetSearch(id);
                Console.WriteLine(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API: " + e.Message);
            }
        }
        public static void Run()
        {
            var id = "1310577b-0d78-40a6-8185-acf77d29ed1e";

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

                var result = apiInstance.GetSearch(id);
                Console.WriteLine(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API: " + e.Message);
            }
        }
Beispiel #4
0
        public static void Run()
        {
            var id = "a50bdca7-8f76-499a-b5a6-be2df06afe1b";

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

                var result = apiInstance.GetSearch(id);
                Console.WriteLine(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API: " + e.Message);
            }
        }
        public static TssV2TransactionsPost201Response Run()
        {
            var searchId = CreateSearchRequest.Run().SearchId;

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

                var apiInstance = new SearchTransactionsApi(clientConfig);
                TssV2TransactionsPost201Response result = apiInstance.GetSearch(searchId);
                Console.WriteLine(result);
                return(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API : " + e.Message);
                return(null);
            }
        }