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

Commit 5b124d5

Browse files
IngenicoEPaymentsjenkins
authored andcommitted
Release 3.14.0.
1 parent 300fef9 commit 5b124d5

File tree

4 files changed

+26
-11
lines changed

4 files changed

+26
-11
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "connect-sdk-nodejs",
3-
"version": "3.13.0",
3+
"version": "3.14.0",
44
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
55
"dependencies": {
6-
"dateformat": "^1.0.12",
7-
"form-data": "^2.3.3",
8-
"jsonschema": "^1.1.0",
9-
"lodash": "^4.7.0",
10-
"node-uuid": "^1.4.7",
11-
"traverse": "^0.6.6",
12-
"secure-compare": "^3.0.1"
6+
"dateformat": "^4.5.1",
7+
"form-data": "^4.0.0",
8+
"jsonschema": "^1.4.0",
9+
"lodash": "^4.17.21",
10+
"node-uuid": "^1.4.8",
11+
"secure-compare": "^3.0.1",
12+
"traverse": "^0.6.6"
1313
},
1414
"devDependencies": {},
1515
"repository": {

schemas/payment/CreatePaymentRequest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,9 @@
17141714
"isRecurring" : {
17151715
"type" : "boolean"
17161716
},
1717+
"paymentProduct4101SpecificInput" : {
1718+
"$ref" : "#/definitions/RedirectPaymentProduct4101SpecificInput"
1719+
},
17171720
"paymentProduct809SpecificInput" : {
17181721
"$ref" : "#/definitions/RedirectPaymentProduct809SpecificInput"
17191722
},
@@ -1760,6 +1763,18 @@
17601763
},
17611764
"additionalProperties" : false
17621765
},
1766+
"RedirectPaymentProduct4101SpecificInput" : {
1767+
"type" : "object",
1768+
"properties" : {
1769+
"integrationType" : {
1770+
"type" : "string"
1771+
},
1772+
"vpa" : {
1773+
"type" : "string"
1774+
}
1775+
},
1776+
"additionalProperties" : false
1777+
},
17631778
"RedirectPaymentProduct809SpecificInput" : {
17641779
"type" : "object",
17651780
"properties" : {

utils/headers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var serverMetaInfo = function (sdkContext) {
99
key: "X-GCS-ServerMetaInfo",
1010
value: {
1111
'sdkCreator': 'Ingenico',
12-
'sdkIdentifier': 'NodejsServerSDK/v3.13.0',
12+
'sdkIdentifier': 'NodejsServerSDK/v3.14.0',
1313
'platformIdentifier': process.env['OS'] + ' Node.js/' + process.versions.node
1414
}
1515
};
@@ -19,7 +19,7 @@ var serverMetaInfo = function (sdkContext) {
1919
if (sdkContext.getShoppingCartExtension() !== null) {
2020
info.value['shoppingCartExtension'] = sdkContext.getShoppingCartExtension();
2121
}
22-
info.value = new Buffer(JSON.stringify(info.value)).toString("base64");
22+
info.value = Buffer.from(JSON.stringify(info.value)).toString("base64");
2323
return info;
2424
};
2525

webhooks/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var validateBody = function (body, requestHeaders, cb) {
4444
cb(error);
4545
} else {
4646
var expectedSignature = crypto.createHmac('sha256', secretKey).update(body).digest('base64');
47-
if (compare(expectedSignature, signature)) {
47+
if (compare(signature, expectedSignature)) {
4848
cb(null);
4949
} else {
5050
cb(new Error("failed to validate signature '" + signature + "'"));

0 commit comments

Comments
 (0)