[ic] Authorizenet payment module (modifications)

Jon Jensen interchange-users@icdevgroup.org
Mon Jun 2 14:43:01 2003


On Mon, 2 Jun 2003, Chaim Klar wrote:

>     # Minivend names are on the  left, Authorize.Net on the right
>     my %result_map = ( qw/
>             pop.status            x_response_code
>             pop.error-message     x_response_reason_text
>             order-id              x_trans_id
>             pop.order-id          x_trans_id
>             pop.auth-code         x_auth_code
>             pop.avs_code          x_avs_code
>             pop.avs_zip           x_zip
>             pop.avs_addr          x_address
>             pop.cvv2_resp_code    x_cvv2_resp_code	#ck
>     /
>     );

Chaim,

I just glanced at the code for this and noticed a problem in the above 
hash. You can't put comments like your "#ck" in the middle of a qw() 
quoted area, because they end up being part of the hash. In this case, 
it's equivalent to you saying $result_map{'#ck'} = undef. Just thought you 
may want to know.

Jon