コード例 #1
0
        public void AddCustomerDebitAsync()
        {
            var customerDebit = new customerDebit {
                id          = "11",
                reportGroup = "Default Report Group",

                fundingCustomerId = "value for fundingCustomerId",
                customerName      = "value for customerName",
                fundsTransferId   = "value for fundsTransferId",
                amount            = 1512l,
                customIdentifier  = "WorldPay",
                accountInfo       = new echeckType()
                {
                    accType    = echeckAccountTypeEnum.Checking,
                    accNum     = "1092969901",
                    routingNum = "011075150",
                    checkNum   = "123455",
                }
            };

            CancellationToken cancellationToken = new CancellationToken(false);
            var response = _cnp.CustomerDebitAsync(customerDebit, cancellationToken);

            Assert.AreEqual("000", response.Result.response);
        }