Skip to content

Crossmint/crossmint-sdk

Repository files navigation

crossmint-sdk

You can check the full documentation at docs.crossmint.com

The Crossmint SDK allows you to offer wallet-less credit card purchases on your NFT drop. It takes 5 lines of code and 5 minutes to integrate. It's free to use for the seller. You’ll get the sales proceeds in SOL/ETH as if the user was paying with their own wallet.

Get Started

To get started and for full integration instructions visit our documentation.

Migration guide to 0.1.X versions

Version 0.1.0 introduces breaking changes. To learn how to migrate from a version lower than 0.1.0, check out the migration guide.

Migration guide to 0.2.X versions

Version 0.2.0 introduces breaking changes. To learn how to migrate from a version lower than 0.2.0, check out the migration guide.


Build from Source

  1. Clone the project:
git clone https://github.com/Crossmint/crossmint-sdk.git
  1. Install dependencies:
cd crossmint-sdk
pnpm install
  1. Build all packages:
pnpm build
  1. Run locally:
cd apps/payments/create-react-app
pnpm start

Remember that if doing changes on the @crossmint/client-sdk-react-ui package, they wont be reflected into your project until you rebuild the package and install it back again:

# Inside `packages/client/ui/react-ui`. Rebuild package
pnpm build
# Inside the starter. Eg. `packages/client/startes/nextjs-starter`. Install rebuilt package
pnpm install

Publish

  1. Locally, run pnpm change:add - the CLI will guide you through selecting which packages you want to update + adding a short message for the changelog
  2. Commit the generated changeset file to your PR
  3. The changeset-bot will comment on your PR when it detects a new changeset has been added
  4. Merge your PR, with the changeset, to main
  5. A "Release packages" PR will be created/updated by the changeset-bot, detailing the pending updates
  6. Merge the "Release packages" PR to main - the new packages will automatically be published on the NPM registry
  7. Done!

(OLD) Publish (for the crossmint team)

pnpm build
pnpm test
pnpm run lerna version
pnpm build
pnpm run publish