You need to edit node_modules/globalpayments-api/lib/src/Gateways/XmlGateway.js and comment out the contents of XmlGateway.prototype.log. This is a PCI compliance issue as it saves the entire transaction including all credit card details to disk unencrypted.
Before:
XmlGateway.prototype.log = function (text) {
fs.appendFile('logger.txt', text + '\n', function (err) {
if (err)
throw err;
});
};
After:
XmlGateway.prototype.log = function (text) {
/*
fs.appendFile('logger.txt', text + '\n', function (err) {
if (err)
throw err;
});
*/
});
};
You need to edit node_modules/globalpayments-api/lib/src/Gateways/XmlGateway.js and comment out the contents of XmlGateway.prototype.log. This is a PCI compliance issue as it saves the entire transaction including all credit card details to disk unencrypted.
Before:
After: