0.0.3 • Published 2 years ago

crossmint-client-sdk-vue-ui v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Crossmint.io Client SDK for Vue.js

The Crossmint SDK allows you to offer wallet-less credit card purchases on your NFT drop. It takes 5 lines of code and 5 min to integrate, and is 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.

Supported chains:

  • Solana
  • Polygon (for docs: contact us at sales at crossmint.io)
  • Ethereum L1 (end of March 2021)

To get started:

  1. Fill out our form in https://www.crossmint.io/developers/onboarding (we'll review your project in under 24hr!)
  2. Follow the instructions below to integrate with your code

Demo of the user experience:

https://vimeo.com/671525311


Quick Setup (Vue.js - Vite / Vue CLI)

1. Install

yarn add crossmint-client-sdk-vue-ui

2. Set up

Go to file where you want to integrate Crossmint button. For example, App.vue.

There, just import the Pay with CrossmintPayButton, and add it in the UI.

Important: If you have Candy Machine UI, be sure to test that the Crossmint button is visible even if a user didn't connect their wallet! Else, your users without wallets won't be able to use it.

<script>
  import { CrossmintPayButton } from 'crossmint-client-sdk-vue-ui';
</script>

<template>
  <CrossmintPayButton
    client-id="<YOUR_CLIENT_ID>"
    collection-title="<TITLE_FOR_YOUR_COLLECTION>"
    collection-description="<DESCRIPTION_OF_YOUR_COLLECTION>"
    collection-photo="<OPT_URL_TO_PHOTO_COVER>"
  />
</template>

Finally, make sure you replace the following values in the CrossmintPayButton component:

3. Components

CrossmintPayButton required

CrossmintPayButton is a button component that is used to trigger the opening of the CrossMint popup and modal overlay.

propNamedefaultrequireddescription
clientIdundefinedtrueYour client integration identifier
collectionTitleundefinedfalseThis will be shown to the user during the checkout process. Max length: 120
collectionDescriptionundefinedfalseThis will be shown to the user during the checkout process. Max length: 24
collectionPhotoundefinedfalseThis will be shown to the user during the checkout process. Preferred resolution: 200x200 px
themedarkfalseUse this to specify one of our default themes. Can be light, dark
...propsundefinedfalseAll valid html button props can be added to the button

CrossmintStatusButton

CrossmintStatusButton is a button component that is used to display Crossmint onboarding status. Normally shouldn't be visible to page visitors.

propNamedefaultrequireddescription
clientIdundefinedtrueYour client integration identifier
themedarkfalseUse this to specify one of our default themes. Can be light, dark
...propsundefinedfalseAll valid html button props can be added to the button
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago