Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/rgProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"LIVE_HOST_16": "gateway-16.rocketgate.com",
"LIVE_HOST_17": "gateway-17.rocketgate.com",
"TEST_HOST": "dev-gateway.rocketgate.com",
"VERSION_NUMBER": "K2.4"
"VERSION_NUMBER": "K2.5"
},
"responseSettings": {
"VERSION_INDICATOR": "version",
Expand Down
23 changes: 23 additions & 0 deletions lib/gatewayService.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,28 @@ function GatewayService(options) {
});
}

/**
* Lookup previous transaction
*
* @param {Object} request
* @param {Object} response
* @param {Function} callback
*/
function performLookup(request, response, callback) {
request.transactionType = "LOOKUP";
var referenceGUID = request.referenceGUID;

if (referenceGUID) {
performTargetedTransaction(request, response, function(results, request, response) {
callback(results, request, response);
});
} else {
performTransaction(request, response, function(results, request, response) {
callback(results, request, response);
});
}
}

/**
* Submit purchase information to the RocketGate system for validation and
* fraud analysis.
Expand Down Expand Up @@ -700,6 +722,7 @@ function GatewayService(options) {
performPurchase: performPurchase,
performCredit: performCredit,
performVoid: performVoid,
performLookup: performLookup,
performCardScrub: performCardScrub,
performRebillCancel: performRebillCancel,
performRebillUpdate: performRebillUpdate,
Expand Down