예제 #1
0
        public static PaymentInstrumentListForCustomer Run()
        {
            string instrumentIdentifierTokenId = "7010000000016241111";
            string profileid = "93B32398-AD51-4CC2-A682-EA3E93614EB1";
            long?  offset    = (long?)null;
            long?  limit     = (long?)null;

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

                var apiInstance = new InstrumentIdentifierApi(clientConfig);
                PaymentInstrumentListForCustomer result = apiInstance.GetInstrumentIdentifierPaymentInstrumentsList(instrumentIdentifierTokenId, profileid, offset, limit);
                Console.WriteLine(result);
                return(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API : " + e.Message);
                return(null);
            }
        }
        public static PaymentInstrumentListForCustomer Run()
        {
            string customerTokenId = "AB695DA801DD1BB6E05341588E0A3BDC";
            string profileid       = null;
            long?  offset          = (long?)null;
            long?  limit           = (long?)null;

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

                var apiInstance = new CustomerPaymentInstrumentApi(clientConfig);
                PaymentInstrumentListForCustomer result = apiInstance.GetCustomerPaymentInstrumentsList(customerTokenId, profileid, offset, limit);
                Console.WriteLine(result);
                return(result);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception on calling the API : " + e.Message);
                return(null);
            }
        }