[ic] CVV2 and AuthorizeNet

c_klar interchange-users@icdevgroup.org
Mon Nov 18 18:20:01 2002


HI:

 > Quoting Jonathan Bradley:
 > 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? 
 > 

I made this change already for one of my clients.
Please give a look at: http://c-cs.com/AuthorizeNet.pm .
I have also added more fields to be compatible with AuthorizeNet.pm

Thank You
Chaim Klar