[ic] authorizenet setup?

Andrew Metcalfe interchange-users@icdevgroup.org
Wed Aug 28 15:52:02 2002


Yeah, I know.  I've got a lot of questions.  I'm getting there...

I've found the source of my "No account id" error.  What I don't understand
is why it's being generated.

why would charge_param('id') be empty if I have both MV_PAYMENT_ID and
AUTHNET_ID defined in catalog.cfg?

IC version 4.8.3

from AuthorizeNet.pm:
sub authorizenet {
        my ($user, $amount) = @_;

        my $opt;
        if(ref $user) {
                $opt = $user;
                $user = $opt->{id} || undef;
                $secret = $opt->{secret} || undef;
        }
        else {
                $opt = {};
        }

        my $actual;
        if($opt->{actual}) {
                $actual = $opt->{actual};
        }
        else {
                my (%actual) = map_actual();
                $actual = \%actual;
        }

        #::logDebug("actual map result: " . ::uneval($actual));
        if (! $user ) {
        	$user    =  charge_param('id')
						or return (
                                    	MStatus => 'failure-hard',
							MErrMsg => errmsg('No account id'),
                                          );
   	  }

...deletia