[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] checking AVS in signio.pm
>
> 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'.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/