@ -80,6 +80,9 @@ PayPro.prototype.x509Verify = function() {
var ncert = chain[i + 1];
// The root cert, check if it's trusted:
if (!ncert || name) {
if (!ncert && !name) {
return false;
}
chain.length = 0;
return true;
@ -90,6 +90,9 @@ PayPro.prototype.x509Verify = function(key) {