https://github.com/klarna/sfcc-klarna-checkout
Salesforce Cloud Commerce Cartridge for Klarna Checkout Integration
https://github.com/klarna/sfcc-klarna-checkout
Last synced: 3 months ago
JSON representation
Salesforce Cloud Commerce Cartridge for Klarna Checkout Integration
- Host: GitHub
- URL: https://github.com/klarna/sfcc-klarna-checkout
- Owner: klarna
- Created: 2023-01-11T15:27:53.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T18:34:49.000Z (about 1 year ago)
- Last Synced: 2025-01-21T02:09:13.719Z (4 months ago)
- Size: 12.7 MB
- Stars: 0
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Klarna Checkout 2017-2022 Link Cartridge
Version 22.2.0## Integration
Please check ./documentation/Klarna Chekout Integration Documentation.docx (for SiteGenesis) and ./documentation/SFRA Klarna Chekout Integration Documentation.docx (for SFRA) as the integration reference.
# NPM scripts
`npm install` - Install all of the local dependencies.
`npm run compile:js` - Compiles all .js files and aggregates them.
`npm run lint` - Execute linting for all JavaScript files in the project.
`npm run uploadSfra` - Will upload `int_klarna_checkout_sfra` to the server. Requires a valid `dw.json` file at the root that is configured for the sandbox to upload.
`npm run uploadSitegenesis` - Will upload `int_klarna_checkout` to the server. Requires a valid `dw.json` file at the root that is configured for the sandbox to upload.## Tests
### Unit tests
In order to run the unit tests, do the following steps in the root of the project.
1. `npm install`
2. `npm run test`### Integration tests
In order to run the integration tests, do the following steps in the root of the project.
1. `npm install`
2. Make sure you have a `dw.json` file pointing to a sandbox.
3. Make sure that the product id defined with `testProductId` in `it.config.js` is pointing to a valid and online product.
4. Change `baseUrl` in `it.config.js` if necessary.
5. `npm run test:integration`