Skip to content

Commit

Permalink
Amazon Pay NodeJS 2.1.2 - Dead Code Removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexterzprotege committed Mar 12, 2021
1 parent b543ea0 commit 17f93f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### Version 2.1.2 - March 2021
* Removing deprecated API calls

#### Version 2.1.1 - June 2020
* Underlying endpoint for getBuyer API changed

Expand Down
2 changes: 1 addition & 1 deletion 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": "@amazonpay/amazon-pay-api-sdk-nodejs",
"version": "2.1.1",
"version": "2.1.2",
"description": "Amazon Pay Checkout V2 Integration",
"main": "src/client.js",
"directories": {},
Expand Down
4 changes: 2 additions & 2 deletions src/clientHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ function signHeaders(configArgs, options) {
const signedHeaders = lowercaseSortedHeaderKeys.join(';');

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

let canonicalRequest = options.method + '\n/'
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
SDK_VERSION: '2.1.1',
SDK_VERSION: '2.1.2',
API_VERSION: 'v2',
RETRIES: 3,
API_ENDPOINTS: {
Expand Down

0 comments on commit 17f93f7

Please sign in to comment.