From 6db7923c2ba1ebfb6a2eb0aaaa985c3b6d5877e8 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 16 Jul 2014 08:57:23 -0700 Subject: [PATCH] fix: fix variable typo for paypro. --- lib/PayPro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPro.js b/lib/PayPro.js index c991921a3bd..11c459200bb 100644 --- a/lib/PayPro.js +++ b/lib/PayPro.js @@ -214,7 +214,7 @@ PayPro.prototype.sign = function(key) { var pki_data = this.get('pki_data'); // contains one or more x509 certs //var details = this.get('serialized_payment_details'); var type = pki_type.split('+').toUpperCase(); - var verifier = crypto.createSign('RSA-' + type); + var signature = crypto.createSign('RSA-' + type); var buf = this.serializeForSig(); signature.update(buf); //var pki_data = require('fs').readFileSync(__dirname + '/../test/data/x509.pem');