diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ed19c6..c6760dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [3.XX.XX] - 2023-XX-XX + +### Fixed +- Added PXHD from risk response to the async activities ## [3.10.1] - 2023-03-29 diff --git a/lib/pxclient.js b/lib/pxclient.js index 36ff995..3b9b616 100644 --- a/lib/pxclient.js +++ b/lib/pxclient.js @@ -46,7 +46,7 @@ class PxClient { this.addAdditionalFieldsToActivity(details, ctx); if (activityType !== ActivityType.ADDITIONAL_S2S) { activity.headers = ctx.headers; - activity.pxhd = ctx.pxhdClient ? ctx.pxhdClient : undefined; + activity.pxhd = (ctx.pxhdServer ? ctx.pxhdServer : ctx.pxhdClient) || undefined; pxUtil.prepareCustomParams(config, details, ctx.originalRequest); }