yarn add @broadleaf/commerce-cart @broadleaf/commerce-core @broadleaf/commerce-customer @broadleaf/payment-react
The Payment React SDK adds hooks for React apps on top of the utilities and types provided by @broadleaf/payment-js and the Commerce SDK.
These hooks are intended to make building checkout and my-account pages faster and provide additional documentation through typing when making API requests for things like checkout submission, managing PaymentAccounts, saved CustomerAddresses, etc.
|
Important
|
You do not need to add both this SDK and @broadleaf/payment-js as it is also included.
However, this library depends on @broadleaf/commerce-cart, @broadleaf/commerce-core, and @broadleaf/commerce-customer, which do need to be included in your project directly.
|