CrossmintEmbeddedCheckout
Props
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
colors
{ background?: string; border?: string; boxShadow?: string; placeholder?: string; text?: string }
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
Usage
import { CrossmintEmbeddedCheckout } from "@crossmint/client-sdk-react-ui";
function Checkout() {
return (
<CrossmintEmbeddedCheckout
lineItems={{
collectionLocator: "crossmint:YOUR_COLLECTION_ID",
callData: {
totalPrice: "0.001",
},
}}
payment={{
crypto: {
enabled: true,
defaultChain: "base-sepolia",
defaultCurrency: "usdc",
},
fiat: {
enabled: true,
defaultCurrency: "usd",
allowedMethods: {
card: true,
applePay: true,
googlePay: true,
},
},
receiptEmail: "buyer@example.com",
}}
recipient={{ email: "buyer@example.com" }}
locale="en-US"
/>
);
}
CrossmintHostedCheckout
Props
Show properties
Show properties
Show properties
Show properties
Usage
import { CrossmintHostedCheckout } from "@crossmint/client-sdk-react-ui";
function BuyButton() {
return (
<CrossmintHostedCheckout
lineItems={{
collectionLocator: "crossmint:YOUR_COLLECTION_ID",
callData: {
totalPrice: "0.001",
},
}}
payment={{
crypto: {
enabled: true,
defaultChain: "base-sepolia",
defaultCurrency: "usdc",
},
fiat: {
enabled: true,
defaultCurrency: "usd",
},
receiptEmail: "buyer@example.com",
}}
recipient={{ email: "buyer@example.com" }}
appearance={{
display: "popup",
overlay: { enabled: true },
theme: {
button: "dark",
checkout: "light",
},
}}
locale="en-US"
/>
);
}

