Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix some failing tests

  • Loading branch information...
commit d8e5146e84b2076df9c7d039375b94314256cc06 1 parent 51f69fc
@chrismcv chrismcv authored
View
3  lib/gateway-client.js
@@ -25,11 +25,12 @@ function GatewayClient(opts, authInfo){
}
var req = https.request(options);
+
req.end(requestString);
req.on('response', function(res){
res.on('data', function(data){
// TODO add error handling
- callback(opts.responseParser.parseResponse(requestString, data.toString(), opts.responseOptions))
+ callback(opts.responseParser.parseResponse(request, data.toString(), opts.responseOptions))
})
})
}
View
4 spec/helpers/transactions.js
@@ -19,7 +19,7 @@ exports.missingCardNumber = {amt:'99.06'
,paymentaction:'Sale'
,ipaddress:'1.1.1.1'
,creditcardtype:'Visa'
- ,expdate:'032011'
+ ,expdate:'032020'
,cvv2:'000'
,firstname:'John'
,lastname:'Doe'
@@ -39,7 +39,7 @@ var doDirectPaymentSigUser = {user:'webpro_1279778538_biz_api1.gmail.com'
,ipaddress:'1.1.1.1'
,creditcardtype:'Visa'
,acct:'4834907016040081'
- ,expdate:'032011'
+ ,expdate:'032020'
,cvv2:'000'
,firstname:'John'
,lastname:'Doe'
View
2  spec/integration/payflowpro/doDirectPayment.spec.js
@@ -35,7 +35,7 @@ function examplesUsing(client){
}),
'contains error messages in an array':one(function(result){
assert.isArray(result.errors)
- assert.equal(1, result.errors.length)
+ assert.equal(1, result.errors.length, result.errors)
}),
'error object contains associated information':one(function(result){
result.errors.forEach(function(err){
Please sign in to comment.
Something went wrong with that request. Please try again.