Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ljmarquezge2y/worldpay-spartacus
Advanced tools
Worldpay payment integration for SAP CX Spartacus
The Worldpay Connector for SAP Spartacus Storefront is an Angular Library that provides the components to integrate WorldPay payment solutions with the SAP Commerce Cloud Spartacus storefront.
Worldpay from FIS is one of the world's leading global eCommerce and payment technology companies. FIS is a leading provider of technology solutions for merchants, banks and capital markets firms globally.
Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud. Spartacus talks to SAP Commerce Cloud exclusively through the Commerce REST API. Spartacus is also an open source project. You can view the Spartacus source code in this GitHub repository.
Spartacus documentation: https://sap.github.io/spartacus-docs/. Release information: https://sap.github.io/spartacus-docs/release-information/.
Note: Some Spartacus features require API endpoints that are only available in newer versions of SAP Commerce Cloud. For more information, see Feature Compatibility.
The Connector is compatible with the Spartacus Release 4.3.1
Run the command ./install.sh
to do a clean install and run the example-storefront
worldpay-spartacus
to your Spartacus project - final name pending npm install @worldpay2020/worldpay-spartacus
Perform the following in your Spartacus storefront's app.module.ts
file.
Note: You can skip this step and import a new WorldpayModule that includes all the required modules in one feature.
import {
WorldpayPaymentComponentModule,
WorldpayPlaceOrderComponentModule,
WorldpayStoreModule,
OccWorldpayModule,
WorldpayPaymentComponent,
WorldpayPlaceOrderComponent,
WorldpayDdcIframeModule,
WorldpayDdcIframeRoutingModule,
Worldpay3dsChallengeIframeModule,
Worldpay3dsChallengeIframeRoutingModule,
worldpayTranslations
} from '@worldpay2020/worldpay-spartacus';
@NgModule({
imports: [
...
WorldpayPaymentComponentModule,
WorldpayPlaceOrderComponentModule,
WorldpayStoreModule,
WorldpayDdcIframeModule,
WorldpayDdcIframeRoutingModule,
Worldpay3dsChallengeIframeModule,
Worldpay3dsChallengeIframeRoutingModule,
OccWorldpayModule,
WorldpayCartSharedModule,
],
...
})
@NgModule({
providers: [
provideConfig({
i18n: { resources: worldpayTranslations },
...
}),
]
})
Perform the following in your Spartacus storefront's app.module.ts
file.
import { WorldpayModule } from '@worldpay2020/worldpay-spartacus';
@NgModule({
imports: [
...
WorldpayModule,
],
})
As B2cStorefrontModule
has been removed from spartacus, you can remove this code from your app.module
file Override the following CMS components in the B2cStorefrontModule
@NgModule({
imports: [
B2cStorefrontModule.withConfig({
cmsComponents: {
CheckoutPaymentDetails: {
component: WorldpayPaymentComponent
},
CheckoutPlaceOrder: {
component: WorldpayPlaceOrderComponent
}
},
...
}),
]
})
@NgModule({
providers: [
...
provideConfig({
cmsComponents: {
CheckoutPaymentDetails: {
component: WorldpayPaymentComponent
},
CheckoutPlaceOrder: {
component: WorldpayPlaceOrderComponent
}
},
...
}),
]
})
Copyright (c) 2022 Worldpay Ltd.
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.
FAQs
Worldpay payment integration for SAP CX Spartacus
We found that @ljmarquezge2y/worldpay-spartacus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.