Skip to content

Commit 855cc33

Browse files
committed
Updates for 2024 Release
1 parent 82b2d14 commit 855cc33

12 files changed

+889
-929
lines changed

CustomerProfiles/create-customer-payment-profile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function createCustomerPaymentProfile(customerProfileId, callback) {
1313

1414
var creditCard = new ApiContracts.CreditCardType();
1515
creditCard.setCardNumber('4242424242424242');
16-
creditCard.setExpirationDate('0822');
16+
creditCard.setExpirationDate('0842');
1717

1818
var paymentType = new ApiContracts.PaymentType();
1919
paymentType.setCreditCard(creditCard);

CustomerProfiles/create-customer-profile-with-accept.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function createCustomerProfile(callback) {
1313

1414
//var creditCard = new ApiContracts.CreditCardType();
1515
//creditCard.setCardNumber('4242424242424242');
16-
//creditCard.setExpirationDate('0822');
16+
//creditCard.setExpirationDate('0842');
1717

1818
var opaqueData = new ApiContracts.OpaqueDataType();
1919
opaqueData.setDataDescriptor('COMMON.ACCEPT.INAPP.PAYMENT');

CustomerProfiles/create-customer-profile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function createCustomerProfile(callback) {
1313

1414
var creditCard = new ApiContracts.CreditCardType();
1515
creditCard.setCardNumber('4242424242424242');
16-
creditCard.setExpirationDate('0822');
16+
creditCard.setExpirationDate('0842');
1717

1818
var paymentType = new ApiContracts.PaymentType();
1919
paymentType.setCreditCard(creditCard);
@@ -62,7 +62,7 @@ function createCustomerProfile(callback) {
6262
//pretty print response
6363
//console.log(JSON.stringify(response, null, 2));
6464

65-
if(response != null)
65+
if(response != null)
6666
{
6767
if(response.getMessages().getResultCode() == ApiContracts.MessageTypeEnum.OK)
6868
{

PaymentTransactions/authorize-credit-card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function authorizeCreditCard(callback) {
1212

1313
var creditCard = new ApiContracts.CreditCardType();
1414
creditCard.setCardNumber('4242424242424242');
15-
creditCard.setExpirationDate('0822');
15+
creditCard.setExpirationDate('0842');
1616
creditCard.setCardCode('999');
1717

1818
var paymentType = new ApiContracts.PaymentType();

PaymentTransactions/capture-funds-authorized-through-another-channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function captureFundsAuthorizedThroughAnotherChannel(callback) {
1212

1313
var creditCard = new ApiContracts.CreditCardType();
1414
creditCard.setCardNumber('4242424242424242');
15-
creditCard.setExpirationDate('0822');
15+
creditCard.setExpirationDate('0842');
1616
creditCard.setCardCode('999');
1717

1818
var paymentType = new ApiContracts.PaymentType();

PaymentTransactions/charge-credit-card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function chargeCreditCard(callback) {
1313

1414
var creditCard = new ApiContracts.CreditCardType();
1515
creditCard.setCardNumber('4242424242424242');
16-
creditCard.setExpirationDate('0822');
16+
creditCard.setExpirationDate('0842');
1717
creditCard.setCardCode('999');
1818

1919
var paymentType = new ApiContracts.PaymentType();

PaymentTransactions/charge-tokenized-credit-card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function chargeTokenizedCreditCard(callback) {
1212

1313
var creditCard = new ApiContracts.CreditCardType();
1414
creditCard.setCardNumber('4242424242424242');
15-
creditCard.setExpirationDate('0822');
15+
creditCard.setExpirationDate('0842');
1616
// Set the token specific info
1717
creditCard.setIsPaymentToken(true);
1818
creditCard.setCryptogram('EjRWeJASNFZ4kBI0VniQEjRWeJA=');

PaymentTransactions/create-chase-pay-transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function createChasePayTransaction(callback) {
1212

1313
var creditCard = new ApiContracts.CreditCardType();
1414
creditCard.setCardNumber('4242424242424242');
15-
creditCard.setExpirationDate('0822');
15+
creditCard.setExpirationDate('0842');
1616
creditCard.setCardCode('999');
1717
// Set the token specific info
1818
creditCard.setIsPaymentToken(true);

PaymentTransactions/refund-transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function refundTransaction(transactionId, callback) {
1212

1313
var creditCard = new ApiContracts.CreditCardType();
1414
creditCard.setCardNumber('4242424242424242');
15-
creditCard.setExpirationDate('0822');
15+
creditCard.setExpirationDate('0842');
1616

1717
var paymentType = new ApiContracts.PaymentType();
1818
paymentType.setCreditCard(creditCard);

constants.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22

33
module.exports.apiLoginKey = '5KP3u95bQpv';
44
module.exports.transactionKey = '346HZ32z3fP4hTG2';
5+
module.exports.config = {
6+
'logger': {
7+
'enabled': false,
8+
'location': '',
9+
//logging levels - { error: 0, warn: 1, info: 2, verbose: 3, debug: 4, silly: 5
10+
'level': 'silly'
11+
}
12+
}

0 commit comments

Comments
 (0)