[ic] Re: Propogating new variable from Payment module into order history

tom friedel interchange-users@icdevgroup.org
Mon Sep 23 12:04:01 2002


Thank you for the reply I am still struggling with this. I would like for the auth code from the payment module to end up in the mysql database, the transactions table.  Perhaps I could use the po_number field, which is not being used.  The 'payment_result' hash does not seem to correspond to the transactions table. So I am not sure if these things (avs_code, etc.) are even saved.  Furthermore, in Payment.pm it appears that hash is deleted and reconstructed from the hash returned by the payment module, so the code suggested below may not fill that hash anyway.  Is there a simple way I can put something in the po_number field so that it ends up in the mysql database.


---------------


Put the authorization code into the result hash which the Payment
module returns. 

You can access it with 

[calc]$Session->{payment_result}->{'pop.avs-code'}[/calc] 

(replace pop.avs-code with the appropriate key in the hash).