Totally Zenned
- Join Date:
- Jul 2012
- Posts:
- 16,908
- Plugin Contributions:
- 2
Post #21 by mc12345678
QuickBooksDev:
All the credentials have been carried forward. There is nothing in zencart154/logs for the times I run these tests even though logging is on.
Am I looking in the right folder?
The last entry in logs was 2 days ago.
I would think that if the credentials are bad it would show up later when attempting to connect with AuthNet not in the display of Payment Methods.
Per line 106 of includes/modules/payment/authorizenet_aim.php of ZC Version 1.5.4 or line 104 of ZC Version 1.5.5
$this->_logDir = defined('DIR_FS_LOGS') ? DIR_FS_LOGS : DIR_FS_SQL_CACHE;
So, if DIR_FS_LOGS is defined, then it will use the definition of DIR_FS_LOGS which is provided in the includes/configure.php file, otherwise it will use DIR_FS_SQL_CACHE which is also defined in that file. But, it doesn't do any type of check to verify the existence of the folder, just that the constant is defined...
Then based on the code in the plugin for update_status:
function update_status() {
global $order, $db;
if (IS_ADMIN_FLAG === false) {
// if store is not running in SSL, cannot offer credit card module, for PCI reasons
if (MODULE_PAYMENT_AUTHORIZENET_AIM_TESTMODE != 'Test' && (!defined('ENABLE_SSL') || ENABLE_SSL != 'true')) $this->enabled = FALSE;
It would appear that placing the payment module in test and it working indicates that ENABLE_SSL is not defined or is not equal to 'true'. This is further reason to provide your includes/configure.php to validate the setup. Otherwise how is your version of includes/modules/payment/authorizenet_aim.php different from a default version?
The above test basically says with consideration of being in test mode that if you are in test mode then the module doesn't care whether SSL is defined or enabled, it will allow the plugin to move forward/operate, though later in the code, being in testmode will prevent the purchase from being considered official.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...