Skip to content

Commit 7191d2f

Browse files
committed
+ Renamed Visa Checkout to Visa SRC
+ Blocking GetCustomerProfileIds call as response exceeds log limit
1 parent 8f88df1 commit 7191d2f

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

VisaCheckout/create-visa-checkout-transaction.js renamed to VisaCheckout/create-visa-src-transaction.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var ApiContracts = require('authorizenet').APIContracts;
44
var ApiControllers = require('authorizenet').APIControllers;
55
var constants = require('../constants.js');
66

7-
function createVisaCheckoutTransaction(callback) {
7+
function createVisaSrcTransaction(callback) {
88
var merchantAuthenticationType = new ApiContracts.MerchantAuthenticationType();
99
merchantAuthenticationType.setName(constants.apiLoginKey);
1010
merchantAuthenticationType.setTransactionKey(constants.transactionKey);
@@ -75,9 +75,9 @@ function createVisaCheckoutTransaction(callback) {
7575
}
7676

7777
if (require.main === module) {
78-
createVisaCheckoutTransaction(function(){
79-
console.log('createVisaCheckoutTransaction call complete.');
78+
createVisaSrcTransaction(function(){
79+
console.log('createVisaSrcTransaction call complete.');
8080
});
8181
}
8282

83-
module.exports.createVisaCheckoutTransaction = createVisaCheckoutTransaction;
83+
module.exports.createVisaSrcTransaction = createVisaSrcTransaction;

VisaCheckout/decrypt-visa-checkout-data.js renamed to VisaCheckout/decrypt-visa-src-data.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var ApiContracts = require('authorizenet').APIContracts;
44
var ApiControllers = require('authorizenet').APIControllers;
55
var constants = require('../constants.js');
66

7-
function decryptVisaCheckoutData(callback) {
7+
function decryptVisaSrcData(callback) {
88
var merchantAuthenticationType = new ApiContracts.MerchantAuthenticationType();
99
merchantAuthenticationType.setName(constants.apiLoginKey);
1010
merchantAuthenticationType.setTransactionKey(constants.transactionKey);
@@ -59,9 +59,9 @@ function decryptVisaCheckoutData(callback) {
5959
}
6060

6161
if (require.main === module) {
62-
decryptVisaCheckoutData(function(){
63-
console.log('decryptVisaCheckoutData call complete.');
62+
decryptVisaSrcData(function(){
63+
console.log('decryptVisaSrcData call complete.');
6464
});
6565
}
6666

67-
module.exports.decryptVisaCheckoutData = decryptVisaCheckoutData;
67+
module.exports.decryptVisaSrcData = decryptVisaSrcData;

VisaCheckout/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

33
module.exports = {
4-
createVisaCheckoutTransaction: require('./create-visa-checkout-transaction.js').createVisaCheckoutTransaction,
5-
decryptVisaCheckoutData: require('./decrypt-visa-checkout-data.js').decryptVisaCheckoutData
4+
createVisaSrcTransaction: require('./create-visa-src-transaction.js').createVisaSrcTransaction,
5+
decryptVisaSrcData: require('./decrypt-visa-src-data.js').decryptVisaSrcData
66
};

list_of_sample_codes.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ getTransactionDetails,1
2323
getTransactionList,1
2424
getTransactionListForCustomer,1
2525
getUnsettledTransactionList,1
26-
createVisaCheckoutTransaction,0
27-
decryptVisaCheckoutData,1
26+
createVisaSrcTransaction,0
27+
decryptVisaSrcData,1
2828
authorizationAndCaptureContinued,1
2929
authorizationAndCapture,1
3030
authorizationOnlyContinued,1
@@ -42,7 +42,7 @@ deleteCustomerProfile,1
4242
deleteCustomerShippingAddress,1
4343
getCustomerPaymentProfile,1
4444
getCustomerPaymentProfileList,1
45-
getCustomerProfileIds,1
45+
getCustomerProfileIds,0
4646
getCustomerProfile,1
4747
getCustomerShippingAddress,1
4848
updateCustomerPaymentProfile,1

test-runner.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ class TestRunner {
159159
TransactionReportingModule.getUnsettledTransactionList(validateFunctionCallback);
160160
}
161161

162-
createVisaCheckoutTransaction(validateFunctionCallback){
163-
VisaCheckoutModule.createVisaCheckoutTransaction(validateFunctionCallback);
162+
createVisaSrcTransaction(validateFunctionCallback){
163+
VisaCheckoutModule.createVisaSrcTransaction(validateFunctionCallback);
164164
}
165165

166-
decryptVisaCheckoutData(validateFunctionCallback){
167-
VisaCheckoutModule.decryptVisaCheckoutData(validateFunctionCallback);
166+
decryptVisaSrcData(validateFunctionCallback){
167+
VisaCheckoutModule.decryptVisaSrcData(validateFunctionCallback);
168168
}
169169

170170
authorizationOnly(validateFunctionCallback){

0 commit comments

Comments
 (0)