Skip to main content

useCrossmintCheckout()

Returns

order
object
orderClientSecret
string

Usage

import { useCrossmintCheckout } from "@crossmint/client-sdk-react-native-ui";
import { View, Text } from "react-native";

function OrderStatus() {
    const { order } = useCrossmintCheckout();

    if (!order) return <Text>No active order</Text>;

    return (
        <View>
            <Text>Order ID: {order.orderId}</Text>
            <Text>Phase: {order.phase}</Text>
        </View>
    );
}