First ensure that the version of SAP Commerce Cloud being used is supported for the plugin. Please view the Compatibility section for the current list of supported versions.
The connector contains several SAP Commerce Cloud extensions. Take the following steps to include the plugin into your SAP Commerce Cloud application:
-
Unzip the supplied plugin zip file
-
Copy the extracted folders to the ${HYBRIS_BIN_DIR} of your SAP Commerce installation.
-
Run the ‘ant clean’ command from within your hybris bin/platform directory.
-
Copy the following lines into your localextensions.xml after . The extensions do not rely on any absolute paths, so it is also possible to place the extensions in a different location (such as ${HYBRIS_BIN_DIR}/custom).
<path autoload="false" dir="${HYBRIS_BIN_DIR}/modules/nuvei"/> <extension name='nuveiaddon' /> <extension name='nuveiservices' /> <extension name='nuveifacades' /> <extension name='nuveibackoffice' /> <extension name='nuveisampledataaddon' /> <extension name='nuveinotifications' /> <extension name='nuveifulfilment' />
-
Run the commands below to install specific add-ons of the yaccelatorstorefront (replace "yacceleratorstorefront" with your custom storefront if relevant). The generic installations instructions are:
ant addoninstall -Daddonnames="nuveiaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"
-
Optional: The nuveisampledataaddon is optional, and can be installed by running the command:
ant addoninstall -Daddonnames="nuveisampledataaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"
-
Run the
ant clean all
command from within your bin/platform directory. -
Update your running system using
ant updatesystem
-
Run
hybrisserver.sh
to startup the SAP Commerce server.
The Connector ships with a gradle recipe to be used with the SAP Commerce installer:
B2C: b2c_acc_plus_nuvei with b2c and Nuvei functionality.
To use recipes on a clean installation:
-
Unzip the supplied plugin zip file
-
Copy the extracted folders to the root folder of your SAP Commerce installation.
-
Run the following commands:
Create a solution from the accelerator templates and install the addons.
HYBRIS_HOME/installer$ ./install.sh -r b2c_acc_plus_nuvei setup -A local_property:initialpassword.admin=nimda
Build and initialize the platform
HYBRIS_HOME/installer$ ./install.sh -r b2c_acc_plus_nuvei initialize -A local_property:initialpassword.admin=nimda
Start a commerce suite instance
HYBRIS_HOME/installer$ ./install.sh -r b2c_acc_plus_nuvei start -A local_property:initialpassword.admin=nimda
A manifest file has been provided as example
Update the manifest with the following content.
-
Add the nuvei extensions under the nuveiaddon section
"extensions": [ ... ... "nuveiaddon", "nuveiservices", "nuveifacades", "nuveibackoffice", "nuveisampledataaddon", "nuveinotifications", "nuveifulfilment", ... ... ],
-
Add the nuveiaddon under the storefrontAddons section, replacing the storefront value yacceleratorstorefront with the name of your storefront (only the storefront. The template value should remain as yacceleratorstorefront) :
"storefrontAddons": [ ... ... { "addon": "nuveiaddon", "storefront": "yacceleratorstorefront", "template": "yacceleratorstorefront" },
-
To be able to receive the notifications, create a webapp under the accstorefront aspect:
"aspects": [ ... ... { "name": "accstorefront", "webapps": [ ... ... { "name": "nuveinotifications", "contextPath": "/nuveinotifications" }, ... ... ] ... ... } ]
This repository is open source and available under the MIT license.
Copyright (c) 2021 Nuvei
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.