[ic] Charge Tag or Authorizenet Bug

Duane Hinkley duane at DownHomeWebDesign.com
Wed Jul 14 15:40:34 EDT 2004

I had a unique request from a client where I ended up using the Perl 
version of the charge tag (i.e. $Tag->charge( { mode => 'authorizenet' }).

Using this code:

                  if ( ! $Tag->charge( { gateway => 
$Variable->{MV_PAYMENT_MODE} } ) ) {
                     $Scratch->{errors} .= "Charge Error<br>";

I recieved this error:

Vend::Interpolate:debug: Failure: payment routine '' returned error: 
require trapped by operation mask at /usr/lib/perl5/5.6.1/Carp.pm line 71.
Compilation failed in require at /usr/lib/perl5/5.6.1/AutoLoader.pm line 

After troubleshooting for quite a while, I stopped at the point were I 
found the command was actually dieing on the post_https for Net::SSLeay 
on line 619 on Payment.pm.

To fix the problem, I just changed the code to use the [charge 
gateway="authorizenet"] of the charge tag.  I can't think of any reason 
security wise it should work that way.  Anyone have any idea?  Or, is it 
a bug?



Duane Hinkley
Down Home Web Design, Inc.
(208) 424-0572 Fax(208) 587-0738

duane at downhomewebdesign.com

More information about the interchange-users mailing list