Skip to main content

useBuyerJourney
hook

Returns the buyerJourney details on buyer progression in checkout.

Anchor to useBuyerJourney
useBuyerJourney()

BuyerJourney

intercept
(interceptor: ) => Promise<() => void>

Installs a function for intercepting and preventing progress on checkout.

This returns a promise that resolves to a teardown function. Calling the teardown function will remove the interceptor.

To block checkout progress, you must set the block_progress capability in your extension's configuration.

completed
StatefulRemoteSubscribable<boolean>

This subscribable value will be true if the buyer completed submitting their order.

For example, when viewing the Order status page after submitting payment, the buyer will have completed their order.

Was this section helpful?