Returns the order information that's available post-checkout.
Returns the order information that's available post-checkout.
export function useOrder< Target extends RenderExtensionTarget = RenderExtensionTarget, >(): Order | undefined { const api = useApi<Target>(); if ('order' in api) { return useSubscription(api.order); } throw new ExtensionHasNoMethodError('order', api.extension.target); }
Information about an order that was placed.
A globally-unique identifier.
Unique identifier for the order that appears on the order.
If cancelled, the time at which the order was cancelled.