There was an error while processing your transaction: A valid amount is required. (3)
Order not completed, data is not valid
This issue has nothing to do with our extensions, and is caused by a core hack of the mail order manager which inserts inproper code into your authorize.net plugin:
Locate the original code:
- Code: Select all
if(!empty($_REQUEST['mailorder'])){
$formdata = array_merge ($this->_setTransactionDataAdd ($order['details']['BT'], $method), $formdata);
}
else{$formdata = array_merge ($this->_setTransactionData ($order['details']['BT'], $method), $formdata);
}
and update it to :
- Code: Select all
if(!empty($_REQUEST['mailorder'])){
$formdata = array_merge ($this->_setTransactionDataAdd ($order['details']['BT'], $method), $formdata);
}
else{$formdata = array_merge ($this->_setTransactionData ($order['details']['BT'], $totalInPaymentCurrency['value']), $formdata);
}
within your authorize.net plugin:
\plugins\vmpayment\authorizenet\authorizenet.php
Best Regards,
Stan