npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@checkout.com/checkout-spartacus-connector

v4.2.8

Published

Checkout.com provides an end-to-end platform that helps you move faster, instead of holding you back. With flexible tools, granular data and deep insights, it’s the payments tech that unleashes your potential. So you can innovate, adapt to your markets, c

Downloads

20

Readme

CheckoutSpartacusConnector

Checkout.com provides an end-to-end platform that helps you move faster, instead of holding you back. With flexible tools, granular data and deep insights, it’s the payments tech that unleashes your potential. So you can innovate, adapt to your markets, create outstanding customer experiences, and make smart decisions faster. The Connector for SAP Commerce Cloud (formerly Hybris) enables customers to implement a global payment strategy through a single integration in a secure, compliant and unified approach.

This Checkout.com library adds payments capabilities to the Spartacus Storefront for SAP Commerce Cloud.

Release Compatibility

This library is tailored to the Spartacus Storefront:

This release is compatible with:

  • Spartacus: version 4.2
  • Node module checkout-spartacus-translations v4.2.7
  • SAP Commerce Cloud: version 2011/2105/2205/2211
  • Angular CLI: Version 12.0.5 or later, < 13.
  • Node.js: Version 14.15 is required. Version 12.x reached end-of-life on April 30, 2022, and is no longer supported by Spartacus. It is strongly recommended that you migrate any existing Spartacus storefronts to Node.js 14 as soon as possible. If there are any issues with Spartacus and Node.js 14, please upgrade to the latest releases. If you continue to experience issues with Node.js 14, create a support ticket with SAP.
  • Yarn: Version 1.15 or later.

Installation

Install the Checkout.com SAP Commerce Cloud Connector.

Install checkout.com spartacus connector:

  yarn install @checkout.com/checkout-spartacus-connector

Install checkout.com spartacus translations:

  yarn install @checkout.com/checkout-spartacus-translations

Update spartacus-configuration-module.ts file to include the following:

import {CmsConfig, FeaturesConfig, I18nConfig, OccConfig, provideConfig, SiteContextConfig} from '@spartacus/core';
import {CheckoutConfig} from '@spartacus/checkout/root';
import { checkoutComTranslationChunkConfig, checkoutComTranslations } from '@checkout.com/checkout-spartacus-translations';

@NgModule({
  providers: [
    ....,
    provideConfig({
      featureModules: {
        CheckoutComComponentsModule: {
          module: () => import('@checkout.com/checkout-spartacus-connector').then(m => m.CheckoutComComponentsModule),
          cmsComponents: [
            'CheckoutPaymentDetails',
            'CheckoutPlaceOrder',
            'OrderConfirmationThankMessageComponent',
            'OrderConfirmationOverviewComponent',
            'OrderConfirmationItemsComponent',
            'OrderConfirmationShippingComponent',
            'OrderConfirmationTotalsComponent',
            'OrderConfirmationContinueButtonComponent',
            'CheckoutReviewOrder',
            'AccountOrderDetailsItemsComponent',
            'AccountOrderDetailsShippingComponent',
            'GuestRegisterFormComponent',
            'AccountPaymentDetailsComponent',
          ],
        }
      }
    } as CmsConfig), provideConfig({
    i18n: {
      resources: checkoutComTranslations,
      chunks: checkoutComTranslationChunkConfig,
      fallbackLang: 'en'
    },
  } as I18nConfig), provideConfig({
      checkout: {
        guest: true // not required, but we support guest checkout
      }
    } as CheckoutConfig),
    ...
  ]

Being a feature module, the code will only be loaded the moment we enter the third step of the checkout (Payment Details). The translations can’t be be lazy loaded, so this is why it has been moved to separate node module.

At the bottom of the body of your index.html, you will have to add the Frames script. Frames will log customer behaviour while browsing the website.

<body>
  <app-root></app-root>  
  <script src="https://cdn.checkout.com/js/framesv2.min.js"></script>
</body>

Extending components

The source code of the connector can be found on

If you need to extend components, you can fork the repository so you are able to upgrade to future releases. In this fork, you can make your changes and import the library in your storefront.

If you don't want to fork, you can extend components, copy the template and the Angular Component into your project. This will mean that you have to be vigilant when a new release of the library is integrated.

Release notes

Release 4.2.8

  • Updated Klarna APM Configuration

Release 4.2.7

  • Removed BIC from iDeal APM form

Release 4.2.6

  • Included support for SAP CX 2211
  • Fixed dependencies issues.
    • "ng2-tooltip-directive": "^2.10.3",
    • "ngx-plaid-link": "1.0.3",
    • "@techiediaries/ngx-qrcode": "^9.1.0"

Release 4.2.4

  • Included support for SAP CX 2205
  • Included the following components in the list of components to be imported in the Spartacus configuration module:
    • GuestRegisterFormComponent.
    • AccountPaymentDetailsComponent.
  • Included support for the following APMs:
    • Cartes Bancaires
    • Multiple Card Brands
  • Update Dependencies:

Release 4.2.3

Include binaries. Previous 4.2.x releases are missing binaries.

Release 4.2.2

Update readme

Release 4.2.0

Use this release if you are using Spartacus 4.2.x

  • Upgrade to Spartacus 4.2
  • Show first name + last name as the card account holder
  • Fix for ApplePay transaction status

Release 1.0.2

  • Source code now publicly available

Release 1.0.0

  • Added support for SSR

Release 0.0.0

  • Lazy loaded feature module
  • Translations moved to separate node module
  • APM’s
    • AliPay
    • ApplePay
    • Bancontact
    • Benefit Pay
    • EPS
    • Fawry
    • Giropay
    • GooglePay
    • iDeal
    • Klarna
    • KNet
    • Mada
    • Multibanco
    • Oxxo
    • PayPal
    • Poli
    • Przelewy24
    • QPay
    • Sepa
    • Sofort
  • Credit card form placeholder localisation
  • Display card payment icon
  • Made OCC endpoints configurable