Permalink
Browse files

Merge pull request #19 from bikkies/master

Fixing some tests
  • Loading branch information...
2 parents 51f69fc + aaf6991 commit 6fa8975c27e3e5eb88539617510ddebf84954393 @jamescarr committed Apr 22, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −1 lib/gateway-client.js
  2. +2 −2 spec/helpers/transactions.js
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'

0 comments on commit 6fa8975

Please sign in to comment.