示例#1
0
        public bool ValidateBankAccountNumber(string bankAccountNumber, bool international)
        {
            if (international)
            {
                var request = new BankAccountNumberInternational.Request
                {
                    BankAccountNumber = bankAccountNumber
                };

                Client.PerformRequest(request);

                return(request.Response.Result);
            }
            else
            {
                var request = new BankAccountNumber.Request
                {
                    BankAccountNumber = bankAccountNumber
                };

                Client.PerformRequest(request);

                return(request.Response.Result);
            }
        }
示例#2
0
文件: Util.cs 项目: paynl/csharp-sdk
 public bool ValidateBankAccountNumber(string bankAccountNumber, bool international)
 {
     if (international)
     {
         BankAccountNumberInternational.Request request = new BankAccountNumberInternational.Request();
         request.BankAccountNumber = bankAccountNumber;
         Client.PerformRequest(request);
         return request.Response.result;
     }
     else
     {
         BankAccountNumber.Request request = new BankAccountNumber.Request();
         request.BankAccountNumber = bankAccountNumber;
         Client.PerformRequest(request);
         return request.Response.result;
     }
 }