diff --git a/files_to_upload/includes/modules/payment/square.php b/files_to_upload/includes/modules/payment/square.php index 591b171..14b9a3e 100644 --- a/files_to_upload/includes/modules/payment/square.php +++ b/files_to_upload/includes/modules/payment/square.php @@ -1061,7 +1061,7 @@ private function logTransactionData($response, $payload, $errors = '') } } if (($errors != '' && stristr(MODULE_PAYMENT_SQUARE_LOGGING, 'Email on Failures')) || strstr(MODULE_PAYMENT_SQUARE_LOGGING, 'Email Always')) { - zen_mail(STORE_NAME, STORE_OWNER_EMAIL_ADDRESS, 'Square Alert (customer transaction error) ' . date('M-d-Y h:i:s'), $logMessage, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, + zen_mail(STORE_NAME, STORE_OWNER_EMAIL_ADDRESS, 'Square Alert (' . (IS_ADMIN_FLAG === true ? 'admin' : 'customer') . ' transaction error) ' . date('M-d-Y h:i:s'), $logMessage, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, array('EMAIL_MESSAGE_HTML' => nl2br($logMessage)), 'debug'); } }