Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@nautical-commerce/checkout
Advanced tools
This library provides React components and hooks to quickly build a seamless checkout and cart experience for your React application with the Nautical Commerce platform.
This library provides React components and hooks to quickly build a seamless checkout and cart experience for your React application with the Nautical Commerce platform.
You can install the library using either npm or yarn:
note: Should package be @nautical-js/checkout or @nautical-js/react?
npm install @nautical-js/(checkout/react)
yarn add @nautical-js/(checkout/react)
The library provides two main components: and .
The component allows users to view their current cart and update its contents. It can be used as follows:
import { NauticalCart } from '@nautical-js/(checkout/react)';
<NauticalCart
client={apiClient}
token={ABCD1234} // if user returning with previous checkout session i.e. Session saved in LS or on customer DB.
locale={'en-US'}
environment={'test'}
onChange={}
onSubmit={} //triggers when the user proceeds to checkout i.e. User clicks "Checkout Meow" and is navigated to '/checkout'
allowAnalytics={{enabled: true}}
translations={{
OrderTotal: 'Order Total',
ContinueToCheckout: 'Checkout Meow',
}}
// These could be configured in the Nautical dashboard
classNames={{
CartContainer: {
color: 'red',
border: '1px solid white',
}
}}
theme={{
borderColor: 'white',
borderWidth: 2,
colorPrimary: 'blue',
colorSecondary: 'yellow',
}}
/>
The component provides a seamless checkout experience. It can be used as follows:
import { NauticalCheckout } from '@nautical-js/(checkout/react)';
<NauticalCheckout
client={apiClient}
token={ABCD1234} // if user returning with previous checkout session i.e. Session saved in LS or on customer DB.
locale={'en-US'}
environment={'test'}
onChange={}
onSubmit={} //triggers when the user submits checkout
allowAnalytics={{enabled: true}}
translations={{
BuyButton: 'Buy Meow',
PayWithCard: 'Pay With Card',
}}
// These could be configured in the Nautical dashboard
classNames={{
CheckoutContainer: {
color: 'red',
border: '1px solid white',
}
}}
theme={{
borderColor: 'white',
borderWidth: 2,
colorPrimary: 'blue',
colorSecondary: 'yellow',
}}
/>
Contributions to this library are always welcome! If you find a bug or have a feature request, please open an issue. If you want to contribute code, please fork the repository and submit a pull request.
This library is released under the MIT License.
FAQs
This library provides React components and hooks to quickly build a seamless checkout and cart experience for your React application with the Nautical Commerce platform.
The npm package @nautical-commerce/checkout receives a total of 0 weekly downloads. As such, @nautical-commerce/checkout popularity was classified as not popular.
We found that @nautical-commerce/checkout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.