[ic] checking AVS in signio.pm

Jonathan Clark interchange-users@icdevgroup.org
Fri Jul 26 11:21:01 2002


> >   Hello, all.  I'm trying to set up signio.pm so that if the
> transaction isn't declined, it checks the AVSZIP value.
> > Then, if that equals "N", it voids the previous transaction and
> returns a "FAILED" result to the checkout page.  I've
> > been able to do all of these things, I believe, except I don't
> have the correct condition statement to lead into it (it
> > goes through the void & "FAILED" regardless of the AVSZIP).
> Here's what I have to start:
> >
> > if($result{AVSZIP} == N) {
> >         $result{ICSTATUS} = 'failed';
> >
> >   I'm sorry I'm no good with syntax.  Thanks -- Jim
> >
> You'll want quotes round the 'N', in the same way as you have
> quotes round the 'failed'.


..and maybe use 'eq' instead of '==':

if($result{AVSZIP} eq 'N') {

Jonathan
Webmaint.