If you are using our previous version of the pay button, please refer to the old multiple NFT purchases guide

Integrating Crossmint into a marketplace

Integrating Crossmint into a marketplace can be as simple as adding five lines of code, depending on the level of customization required.

The following snippet would be sufficient to render a button that enables the purchase of one of your listings with credit card.

<CrossmintProvider apiKey="_YOUR_CLIENT_API_KEY_">
  <CrossmintHostedCheckout
    lineItems={{
        tokenLocator: "ethereum:0xbC…307e:7777",
        callData: {
          totalPrice: "0.1"
        }
      }}
  />
</CrossmintProvider>

Contact sales to get started.
If you are building a new marketplace, use one of the supported contracts for a faster integration. If you are looking for help building a marketplace, contact us and the Crossmint team will introduce you to the right partner.

FAQs