The Payment JS SDK is designed to make integrating with Payment Gateways easier from a JS frontend client.
Overview
This SDK contains several packages:
-
@broadleaf/payment-js
for use with generic JavaScript web apps -
@broadleaf/payment-react
with additional utility for React web apps. -
@broadleaf/amazon-payment-services-api
for integrating with Broadleaf APIs related to Amazon Payment Services with generic JS. -
@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. -
@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.