How Native JS Checkout Elements Work

What is Native JS Checkout Elements?

Native JS Checkout Elements is the sibling to Checkout Elements, but is framework agnostic.

Usage

To start using the Checkout Elements for your checkout flow, make sure you have registered a smart contract. Then, install the SDK using your favorite package manager.

npm install @nftgate/js-client-sdk
pnpm add @nftgate/js-client-sdk
yarn add @nftgate/js-client-sdk

Once the SDK is installed, you can use any of the functions in your code

  • createCheckoutWithCard
  • createCheckoutWithEth

You can also set your own user-facing error messages using NFTgateSDKError.