[ic] payment module authorizenet (modifications)

Philip S. Hempel interchange-users@icdevgroup.org
Fri May 23 11:55:01 2003


TGIF everyone

I am using 4.9.7 daily

I am working on the authorizenet payment module and I am running into a
few glitches. 

I added to the module support for using the transid as per one of the
messages in the mailing list. This worked out great no problems.

OK, I want to add cvv2 support and that seemed to be  as simple as doing
a remap.

I placed mv_credit_card_cvv2 and a form on the checkout and that worked
fine. I do an order and the encrypted card that is emailed get the cvv2
number.
Ok for the remap I placed the 
x_Card_Code => $actual->{mv_credit_card_cvv2}

x_Card_Code does not map. 

So I do some digging and I decide to try something different, I put in
my checkout "my_card_code" and replace all of the above with this
variable. I then put in Payment.pm the my_card_code and then test.

Changing the above works for some reason. 
I also notice that mv_order_number is not remapped. I am thinking that
this has something to do with the same problem.

I am far from knowing perl so most of the things going on in the module
I do not understand.

I think I understand how cvv2 works, the "mv_credit_card_cvv2" gets
mapped by IC into "cvv2" in the Order.pm. The cvv2 then is used by
Payment.pm to be processed by whatever payment type it is. 

My confusion comes when I use any other variable and add it to
Payment.pm it works just fine. 

What am I seeing or doing that is incorrect? 
Also I have been trying to find the "'Payment Settings' heading in the
Interchange documentation" to learn something about the remapping of
these variables.

Thanks all

-- 
Philip S. Hempel

Give a man a fish and he will feed himself for a day.
*Teach a man to fish and he will feed himself for a lifetime.*

http://linuxhardcore.com/