B2B Checkout Task Modes

The B2B checkout flow executes tasks in two distinct modes, each suited to different action types.

A screen subflow contains a screen component, which is displayed to the buyer when the element executes. A screen subflow uses buyer input and progresses to the next step when the buyer clicks Next.

An asynchronous checkout API action triggers a checkout task. The APIs return the job ID, which the checkout flow wait screen uses to determine if the async task is complete.

When a synchronous operation executes in the checkout flow, the buyer must stay on the checkout flow screen for the task to complete. If the buyer leaves the screen, the checkout information is lost.

To add a sync checkout step, create a custom invocable action using the InvocableMethod Apex annotation. Include the action in your checkout flow. You can also execute Apex directly with the Flow Apex element.