On This Page
Install Cybersource for Salesforce B2C Commerce
Cybersource
for Salesforce B2C CommerceDownload and install the
Cybersource
cartridge for Salesforce
B2C Commerce.Before beginning installation, ensure that you have:
- Access to yourSalesforceB2C Commerce instance.
- Node.js installed on your development machine.
- Appropriate IDE (VSCode recommended with Prophet Debugger extension).
- Download theCybersourcecartridge forSalesforceB2C Commerce from the ISV Integration Toolkits section on GitHub.
- Set up your workspace.
- Create a folder namedfolder in yourCybersourceSalesforceworkspace and copy the downloaded cartridges (int_cybs_sfraandint_cybs_sfra_base) to the workspace.
- If the project's base path is different from the one available in theCybersourcepackage.json, open the file/package.jsonand modify thepaths.basevalue to point to yourapp_storefront_basecartridge. This path is used by the JS and SCSS build scripts.
- Configure IDE (VSCode).
ADDITIONAL INFORMATION
If you use VSCode, install the extension Prophet Debugger and include these lines indw.json():ADDITIONAL INFORMATION
{ "hostname": "your-sandbox-hostname.demandware.net", "username": "yourlogin", "password": "yourpwd", "version": "version_to_upload_to", "cartridge": [ "int_cybs_sfra", "int_cybs_sfra_base", "app_storefront_base", "modules" ] }ADDITIONAL INFORMATION
If you are using a different IDE, refer to the respective guide to set up your workspace. - Build and Upload Code
- Install the node in theCybersourcefolder
- Installsgmf-scriptsandcopy-webpack-pluginwith this command:
ADDITIONAL INFORMATION
npm install sgmf-scripts && npm install copy-webpack-plugin - Compile JS and SCSS with this command:
ADDITIONAL INFORMATION
npm run compile:js && npm run compile:scss - Upload the code to theSalesforceCommerce Cloud instance:
ADDITIONAL INFORMATION
npm run uploadCartridge
RESULT
The
Cybersource
cartridge is now installed and ready for
configuration in your Salesforce
B2C Commerce environment.