Re: Re: Validate_Finance_IBAN
| From: | Stefan Neufeind | Date: | Thu, 18 Sep 2003 14:31:06 +0000 |
| Subject: | Re: Re: Validate_Finance_IBAN | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21706@lists.php.net to get a copy of this message | ||
On 18 Sep 2003 at 15:22, Piotr Klaban wrote:
> On Thu, Sep 18, 2003 at 09:37:21AM +0200, Stefan Neufeind wrote:
> > (without build an object for this purpose but being able to use a
> > simple true / false out-of-the-box). This is also needed for the
> > Validate::multiple-part().
> >
> > > > > - it validates bank branch control digit (in the middle of
> > > > > the IBAN). It uses then Validate::iban() for validating the
> > > > > main two control digits.
> > > >
> > > > Do you have official docs about this? I wanted to add bank-code-
> > > > checking for Germany myself and I sure further checks for other
[... many details about Polish account numbers etc. ...]
> > But when you want to validate such a number you could just add "PL"
> Right. In Poland after 2003: [IBAN] PL+NRB == [IBAN] IBAN
Well, then if you already have an IBAN (although some Polish people
might not yet know :-)) adding "PL" when validating should be a
problem for programmers. Surely we should add checks for the
bankcodes according to certain lists as well for Poland. I'll try to
keep your links in mind.
> > Would you be able to have e.g. the
> > bank-code separated from the account?
>
> For internal use banks are allowed to use anything they want,
> but for external transfers, client information etc. there should
> be used only NRB (IBAN withoput PL) or IBAN.
>
> And according to regulation 5/2002 Polish account numbers consists
> only of digits (exactly 2+8+16 digits). I know other countries can use
> one or more letters inside.
Oh, good to hear about that. Up to now I didn't know about the
account-numbers and Validate_Finance_IBAN allowed [A-Z0-9]{16} for
Poland. I just changed that in CVS to [0-9] ... thank you. Makes
checks even stronger :-))
> > Validate_PL_Finance_bankcode
> > but maybe we should tie the Finance-part together in one place,
> > right?
>
> Yes it should be Validate_Finance[something], maybe
> Validate_Finance_Bankcode Validate_Finance_Bankcode::check($num, 'PL')
> etc.
Okay, will give it a thought when I find the time to have a look at
the ExchangeRate-thing and implement a first bankcode-check (for
Germany, for Poland, ... doesn't matter).
> > Piotr, could you maybe have a look at how a good implementation for
> > this could be done? But please keep in mind the following things:
>
> I will think about it. The problem is that bank branches e.g. in
> Poland are available at several places, with different formats (zipped
> csv etc.). Maybe in other countries there are other formats with no
> xml available. Then the driver should be flexible.
For sure it should. That's why I thought of downloading the file and
transforming it into something common. But that's not mandatory since
the driver is also responsible for checking the bankcodes etc. Just
make sure it's quick and rock-solid :-)
> > numbers to international numbers you would simply have to add PL for
> > Poland. Maybe everybody dealing with such numbers knows about this
> > in Poland? It's something Poland-specific, right?
>
> It seems it is Poland specific - introduced for ease of use for
> computers in banks.
It's a really good idea (especially for European integration).
Wouldn't mind if my account number changes - but using IBAN-only and
strict account-number-checking-algos would possibly make some things
more easy.
> > Where could such information be integrated, what do you propose?
>
> It should be developper who should know how to use
> Validate_Finance_IBAN. The docs of the Validate_Finance_IBAN class
> could contain specific information for each of the countries.
Hmm ... will give that a thought when it comes to more complete docs
:-)) [please no flame-war, folks]
> P.S. What is the bank account number system in USA?
Would be interesting. Anybody could comment on that? I guess we have
a lot of US-people on the list. Or maybe Pierre could tell us about
the French system?
Stefan