Broadleaf Microservices
  • v1.0.0-latest-prod

Payment JS SDK Reference Documentation

The Payment JS SDK is designed to make integrating with Payment Gateways easier from a JS frontend client.

Table of Contents

Overview

This SDK contains several packages:

  1. @broadleaf/payment-js for use with generic JavaScript web apps

  2. @broadleaf/payment-react with additional utility for React web apps.

  3. @broadleaf/amazon-payment-services-api for integrating with Broadleaf APIs related to Amazon Payment Services with generic JS.

  4. @broadleaf/amazon-payment-services-react with additional utility for React web apps and adds support for requests against Amazon’s tokenization and token service APIs.

  5. @broadleaf/paypal-checkout-js for integrating with PayPal Checkout with generic JS.

Installation

Important
If you add @broadleaf/payment-react you will not need to also add @broadleaf/payment-js.

Using the package manager of your choice, run the following command inside your project directory to add the basic JS SDK:

npm install @broadleaf/payment-js
# or
yarn add @broadleaf/payment-js

Next steps

Using the nav on the left, explore the specific implementation details of each module.