1 parent e4c4101 commit 14bf79cCopy full SHA for 14bf79c
1 file changed
lib/PayPro.js
@@ -214,7 +214,7 @@ PayPro.prototype.sign = function(key) {
214
var pki_data = this.get('pki_data'); // contains one or more x509 certs
215
//var details = this.get('serialized_payment_details');
216
var type = pki_type.split('+').toUpperCase();
217
- var verifier = crypto.createSign('RSA-' + type);
+ var signature = crypto.createSign('RSA-' + type);
218
var buf = this.serializeForSig();
219
signature.update(buf);
220
//var pki_data = require('fs').readFileSync(__dirname + '/../test/data/x509.pem');
0 commit comments