Skip to content

Commit 17f93f7

Browse files
Amazon Pay NodeJS 2.1.2 - Dead Code Removal
1 parent b543ea0 commit 17f93f7

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### Version 2.1.2 - March 2021
2+
* Removing deprecated API calls
3+
14
#### Version 2.1.1 - June 2020
25
* Underlying endpoint for getBuyer API changed
36

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amazonpay/amazon-pay-api-sdk-nodejs",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "Amazon Pay Checkout V2 Integration",
55
"main": "src/client.js",
66
"directories": {},

src/clientHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ function signHeaders(configArgs, options) {
145145
const signedHeaders = lowercaseSortedHeaderKeys.join(';');
146146

147147
let payload = options.payload;
148-
if (payload === null || payload === undefined || options.urlFragment.includes(`/account-management/${constants.API_VERSION}/accounts`)) {
149-
payload = ''; // do not sign payload for payment critical data APIs
148+
if (payload === null || payload === undefined) {
149+
payload = '';
150150
}
151151

152152
let canonicalRequest = options.method + '\n/'

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
module.exports = {
4-
SDK_VERSION: '2.1.1',
4+
SDK_VERSION: '2.1.2',
55
API_VERSION: 'v2',
66
RETRIES: 3,
77
API_ENDPOINTS: {

0 commit comments

Comments
 (0)