Exemple #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);
            }
        }
Exemple #2
0
 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;
     }
 }