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

@nautical-commerce/checkout

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nautical-commerce/checkout

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.

  • 0.0.28
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

Nautical Checkout React Library

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.

Installation

You can install the library using either npm or yarn:

npm install @nautical-commerce/checkout
yarn add @nautical-commerce/checkout

Usage

The library provides two main components: and .

The component provides a seamless checkout experience. It can be used as follows:

import { Checkout as NauticalCheckout, CheckoutProvider as NauticalCheckoutProvider } from '@nautical-commerce/checkout';
<NauticalCheckoutProvider       
  currency={currency}
  client={client}
  isLoggedIn={isLoggedIn}
  getClientSecret={getClientSecret}
  >
...
<NauticalCheckout
  countries={countries}
  defaultAddress={defaultAddress}
  paymentGateways={paymentGateways}
  onPayRedirect={onPayRedirect}
/>
...
</NauticalCheckout Provider>

Props

Checkout Provider

  • countries (required): CountryFragment[] - List of countries supported in your checkout
  • paymentGateways (required): PaymentGatewayFragment - Supported payment gateways and gateway data
  • onPayRedirect (required): (checkoutId: string) => string
  • defaultAddress (optional): AddressFragment | null - The user's default address for shipping

Checkout

  • countries (required): CountryFragment[] - List of countries supported in your checkout
  • paymentGateways (required): PaymentGatewayFragment - Supported payment gateways and gateway data
  • onPayRedirect (required): (checkoutId: string) => string - Takes the checkout Id and returns the url for final payment processing
  • defaultAddress (optional): AddressFragment | null - The user's default address for shipping

FAQs

Package last updated on 23 Jun 2023

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