[ic] Re: Authorizenet payment module (modifications)

John Young interchange-users@icdevgroup.org
Tue Jun 3 15:10:01 2003


Philip S. Hempel wrote:

> I have almost completted the modifications to the authorizenet module for CVV2, I
> am running into a situtaion the looks like I may have to do a complete rewrite of
> the module if it is true.
> 
> I am trying to come up with a regex that will work with the split function.
> One of the problems with the original code is that it only cared about the first 6
> fields that get kicked back. Now the response code for CVV2 and some of the other
> responses do not fall into an order that can be handled correctly.
> 
> One problem is if any order has a billing address that covers more than one line it
> will have commas added to it. When this happens the order of fields change. Now
> authorize allows a field encapsulation character to be used so that you know that
> the comma delim area is of the same field.

This is why I mentioned changing your delimiter in my last response
to this subject.  Using something like '|' as the delimiter would
probably suffice.  I've never seen it in an address, and you could
always filter it out during user input if you were really concerned
about it.  Just change the delimiter spec in your Auth.Net preferences
and the .pm, then update that one split line, and it should work.

John Young