Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adyen/adyen-salesforce-pwa

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adyen/adyen-salesforce-pwa

This npm package provides the opportunity to use Adyen as a payment service provider when building your Salesforce PWA application.

  • 1.0.0-beta.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
79
decreased by-19.39%
Maintainers
4
Weekly downloads
 
Created
Source

Adyen Salesforce PWA

This npm package provides the opportunity to use Adyen as a payment service provider when building your Salesforce PWA application.


NOTE

This version is in beta and may not be suitable for production use. We anticipate the general availability solution to be ready by Q1 2024.

Please be aware that the beta version is not supported by Adyen until general availability, will not be providing technical support for this specific beta release.

We encourage users to explore the package, provide feedback, and report any issues via our GitHub repository.


Dependencies & Requirements

Adyen Payments Composable Storefront Integration for B2C Commerce depends on:

  1. PWA v3.1.1
  2. Adyen Web v5.51.0
  3. Adyen API Library for Node.js v14.3.0
  4. Node v18 or later
  5. NPM v9 or later
  6. Salesforce Managed Runtime

Installation

  1. Install the npm package using the following command

    npm install @adyen/adyen-salesforce-pwa
    
  2. Import the Adyen endpoints function in the ssr.js file:

    import {registerAdyenEndpoints} from '@adyen/adyen-salesforce-pwa/dist/ssr/index.js'
    
  3. Include it as part of the server handler callback in the ssr.js file before last app.get() handler:

    const {handler} = runtime.createHandler(options, (app) => {
      // ...
    
      registerAdyenEndpoints(app, runtime)
    
      app.get('*', runtime.render)
    })
    
  4. Include Adyen checkout pages in the routes.jsx of your retail-react-app. Check routes.jsx file for reference.

  5. In your retail-react-app you would need to create a .env file. Check the example file in our reference application.

  6. Import countrylist in constants.js of your retail-react-app and export it as SHIPPING_COUNTRY_CODES:

    import {countryList} from '@adyen/adyen-salesforce-pwa'
    
    export const SHIPPING_COUNTRY_CODES = countryList
    
  7. To run the app locally with env variables execute the following command:

    npm run start:env
    
  8. To push your env variables to the MRT environment execute the following command:

    npm run upload-env
    
  9. To see which env variables are present in the MRT environment execute the following command:

    npm run get-env   
    

Prerequisites

Support

To request a feature, report a bug, or report a security vulnerability, create a GitHub issue.

For other questions, contact our support team.

License

This repository is available under the MIT license.

Keywords

FAQs

Package last updated on 05 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc