[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] authorizenet setup?
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