Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Differentiate admin vs customer in email subject for error alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Jun 23, 2020
1 parent 69c0085 commit 9a34e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files_to_upload/includes/modules/payment/square.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit 9a34e06

Please sign in to comment.