[ic] checking AVS in signio.pm

Kevin Walsh interchange-users@icdevgroup.org
Fri Jul 26 11:53:00 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') {
> 
Oops - I didn't spot that one.  I should get my eyes tested. :-)

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/