diff --git a/CHANGELOG.md b/CHANGELOG.md index 680fd75..1f41e5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,38 @@ -# PunchOutCatalog Changelog +# PunchOutCatalogs Module -[Release Changelog](https://github.com/spryker/punch-out-catalog/releases) +Punchout Catalog Module for Spryker eCommerce Platform + +# Changelog + +# 2.1.1 +- Added the `loginname` OCI field key + +# 2.1.0 +- Business Unit Fix for POST OCI +- Improved Access Token Error Handling +- Introduced A New Route Provider Plugin + + +# 2.1.0 +- Business Unit Fix for POST OCI +- Improved Access Token Error Handling +- Introduced A New Route Provider Plugin + +# 2.0.1 +- Adjust dependency + +# 2.0.0 +- Improve DB structure + +# 1.1.2 +- Dependency injection fixes + +# 1.1.1 +- Apply code review fixes + +# 1.1.0 +- Fixed Setup Request Failure caused by incorrect file name passed to autoloader +- DB update: Renamed 2 indexes in pgw_punchout_catalog_transaction table + +# 1.0.0 +- Initial Release diff --git a/README.md b/README.md index a11c631..33605fc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -# PunchOutCatalog Module -[![Build Status](https://travis-ci.org/punchout-catalogs/punchout-catalog-spryker.svg)](https://travis-ci.org/punchout-catalogs/punchout-catalog-spryker) -[![Coverage Status](https://coveralls.io/repos/github/punchout-catalogs/punchout-catalog-spryker/badge.svg)](https://coveralls.io/github/punchout-catalogs/punchout-catalog-spryker) +# PunchOutCatalogs Module Punchout Catalog Module for Spryker eCommerce Platform @@ -27,7 +25,7 @@ Running: ### Custom cart mapping -Extending cart mapping behavior could be implemented by overriding +Extending cart mapping behavior could be implemented by overriding PunchoutCatalog\Yves\PunchoutCatalog\PunchoutCatalogConfig class method: ```php @@ -143,12 +141,12 @@ Register Punchout routes in `src/Pyz/Yves/ShopApplication/YvesBootstrap.php`: ```php =7.1", diff --git a/src/PunchoutCatalog/Zed/PunchoutCatalog/Business/ContentProcessor/OciContentProcessor.php b/src/PunchoutCatalog/Zed/PunchoutCatalog/Business/ContentProcessor/OciContentProcessor.php index 1f0eec8..c1e2bc4 100644 --- a/src/PunchoutCatalog/Zed/PunchoutCatalog/Business/ContentProcessor/OciContentProcessor.php +++ b/src/PunchoutCatalog/Zed/PunchoutCatalog/Business/ContentProcessor/OciContentProcessor.php @@ -21,24 +21,24 @@ class OciContentProcessor implements OciContentProcessorInterface public function fetchHeader(array $content): PunchoutCatalogProtocolDataTransfer { $username = $hookUrl = null; - - $usernameKeys = ['username', 'login', 'cid']; + + $usernameKeys = ['username', 'login', 'loginname', 'cid']; $hookKeys = ['HOOK_URL', 'hook_url', 'Hook_Url']; - + foreach ($usernameKeys as $usernameKey) { if (!empty($content[$usernameKey])) { $username = $content[$usernameKey]; break; } } - + foreach ($hookKeys as $hookKey) { if (!empty($content[$hookKey])) { $hookUrl = $content[$hookKey]; break; } } - + $password = $content['password'] ?? null; return (new PunchoutCatalogProtocolDataTransfer())