[ic] CVV2 and AuthorizeNet

Jonathan Bradley interchange-users@icdevgroup.org
Mon Nov 18 14:39:01 2002


Redhat 7.3
Perl 5.006.001
Interchange 4.8.6 upgrade

mv_credit_card_cvv2 isn't in ~ICroot~/etc/varnames. 
I'm not sure if this is an issue but I thought I'd bring it up. 
There was no apparent support for cvv2/cvv/cid in the docs for IC. 
So I added my own variable name to ~catroot~/pages/ord/checkout.html and to
~catroot~/etc/report
It works fine. 

Switched to Authorizenet and added the line
                    x_Card_Code     => $actual->{mv_credit_card_cvv2},

to AuthorizeNet.pm

No joy. 

icdebug shows the result

'cvv2' => undef'

and 

  'x_Card_Code' => undef,


I suspect I need to add another line to AuthorizeNet.pm here:

 ## Authorizenet does things a bit different, ensure we are OK
 $actual->{mv_credit_card_exp_month} =~ s/\D//g;
    $actual->{mv_credit_card_exp_month} =~ s/^0+//;
    $actual->{mv_credit_card_exp_year} =~ s/\D//g;
    $actual->{mv_credit_card_exp_year} =~ s/\d\d(\d\d)/$1/;

    $actual->{mv_credit_card_number} =~ s/\D//g;

    my $exp = sprintf '%02d%02d',
                        $actual->{mv_credit_card_exp_month},
                        $actual->{mv_credit_card_exp_year};

that proposed line being
$actual->{mv_credit_card_cvv2} =~s/\D//g;

Anyone familiar enough with AuthorizeNet.pm to comment?