Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 3.20.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Apr 9, 2021
1 parent 000356a commit 1f6f7f3
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion VERSION.TXT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.19.2
3.20.0
7 changes: 5 additions & 2 deletions dist/connectsdk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/connectsdk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/connectsdk.min.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dist/connectsdk.noEncrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ define("connectsdk.Util", ["connectsdk.core"], function (connectsdk) {
return {
screenSize: window.innerWidth + "x" + window.innerHeight,
platformIdentifier: window.navigator.userAgent,
sdkIdentifier: ((document.GC && document.GC.rppEnabledPage) ? 'rpp-' : '') + 'JavaScriptClientSDK/v3.19.2',
sdkIdentifier: ((document.GC && document.GC.rppEnabledPage) ? 'rpp-' : '') + 'JavaScriptClientSDK/v3.20.0',
sdkCreator: 'Ingenico'
};
},
Expand Down Expand Up @@ -789,7 +789,7 @@ define("connectsdk.ApplePay", ["connectsdk.core", "connectsdk.promise", "connect
_C2SCommunicator.createPaymentProductSession('302', _context).then(function (merchantSession) {
try {
applePaySession.completeMerchantValidation(JSON.parse(merchantSession.paymentProductSession302SpecificOutput.sessionObject));
} catch {
} catch (e) {
promise.reject({ message: 'Error completing merchant validation' });
applePaySession.abort();
}
Expand Down Expand Up @@ -1415,6 +1415,7 @@ define("connectsdk.C2SCommunicator", ["connectsdk.core", "connectsdk.promise", "
"paymentContext": {
"countryCode": context.countryCode,
"isRecurring": context.isRecurring,
"isInstallments": context.isInstallments,
"amountOfMoney": {
"amount": context.totalAmount,
"currencyCode": context.currency
Expand Down Expand Up @@ -2783,6 +2784,8 @@ define("connectsdk.C2SPaymentProductContext", ["connectsdk.core"], function(conn
this.locale = payload.locale;
}

this.isInstallments = payload.isInstallments || '';

if (typeof payload.accountOnFileId !== 'undefined') {
this.accountOnFileId = parseInt(payload.accountOnFileId);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/connectsdk.noEncrypt.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/connectsdk.noEncrypt.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "connect-sdk-client-js",
"version": "3.19.2",
"version": "3.20.0",
"description": "The JavaScript based client SDK that can be used for client to server communication between you and the Ingenico ePayments platform",
"main": "gulpfile.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/ApplePay.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ define("connectsdk.ApplePay", ["connectsdk.core", "connectsdk.promise", "connect
_C2SCommunicator.createPaymentProductSession('302', _context).then(function (merchantSession) {
try {
applePaySession.completeMerchantValidation(JSON.parse(merchantSession.paymentProductSession302SpecificOutput.sessionObject));
} catch {
} catch (e) {
promise.reject({ message: 'Error completing merchant validation' });
applePaySession.abort();
}
Expand Down
1 change: 1 addition & 0 deletions src/C2SCommunicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ define("connectsdk.C2SCommunicator", ["connectsdk.core", "connectsdk.promise", "
"paymentContext": {
"countryCode": context.countryCode,
"isRecurring": context.isRecurring,
"isInstallments": context.isInstallments,
"amountOfMoney": {
"amount": context.totalAmount,
"currencyCode": context.currency
Expand Down
2 changes: 2 additions & 0 deletions src/C2SPaymentProductContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ define("connectsdk.C2SPaymentProductContext", ["connectsdk.core"], function(conn
this.locale = payload.locale;
}

this.isInstallments = payload.isInstallments || '';

if (typeof payload.accountOnFileId !== 'undefined') {
this.accountOnFileId = parseInt(payload.accountOnFileId);
}
Expand Down

0 comments on commit 1f6f7f3

Please sign in to comment.