# Configure the Checkout Summary subflow

## Configure a variable for the saved tax identifier

Use the variable to display saved tax identifiers.

To create a variable:

1. Click **Setup** ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/BcJ2YbwBnYvUoes4Bu0e/Setup.png).
2. Type `Flows` in the **Quick Find** field click **Flows**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/tHHVcKxkYEiShvYjy7DO/Quick%20Find%20-%20Flows.png)
3. Scroll down and click **Subflow - Checkout Summary**. The Flow Builder opens in a separate tab.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/tS9dqDXEWkpXy8pemOBG/Flows%20-%20Subflow%20-%20Checkout%20Summary.png)
4. Click the **Manager** tab and then click **New Resource**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/hrGgCViWcijfqkMkJ5Ok/Manager%20tab.png)
5. Enter the following details:
   * Select **Variable** from the **Resource Type** dropdown list.
   * **API Name**: Type `Saved_Tax_Identifier` (or any other name with no restrictions).
   * Select **Text** from the **Data Type** dropdown list.
   * Select the **Available for input** and **Available for output** check boxes.![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/bD1szgqR98TQ9guAUNxm/New%20Resource.png)
6. Click **Done**.

{% hint style="warning" %}
You can this variable to display the tax identifier when you[`configure the Checkout Summary subflow`](#configure-the-checkout-summary-subflow).
{% endhint %}

## Configure the Checkout Summary subflow

Use the Checkout Summary subflow to add support for US tax certificates and tax identifiers. To add custom components to the Checkout Summary subflow:

1. From the **Manager** tab, double-click the **Cart to Order Summary** screen.
2. Delete all OOTB components from the subflow except the **Shipping Address** and **Delivery Method** components.
3. Type `drb2b_drUtil` in the **Search components** field and click **drb2b\_drUtil**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/jBdnATIUD1o0jnSMDybo/Search-drb2b_drUtil.png)
4. Drag the **drb2b\_drUtil** to where you want it to appear on the Edit Screen.
5. Type `drb2b_drUtil` in the **API Name** field.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/YaW4AUhNhbzOXo7R16IQ/API%20Name%20drb2b_drUtil.png)
6. Type `drb2b_taxIdentifier` in the **Search components** field and click **drb2b\_taxIdentifier**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/fkHFESbZCb0bwUuNZJfy/Search-drb2b_taxIdentifier.png)
7. Drag the **drb2b\_taxIdentifier** to where you want it to appear on the Edit Screen.
8. Enter the following details. Be sure to click through all designer attributes to ensure that the default values are registered by Salesforce.
   * **API Name**: Type `Tax_Identifier` (or any other name with no restrictions).
   * **Cart Id**: Type `{!cartId}`.
   * **Selected Tax Identifier**: Type `{!Saved_Tax_Identifier}`.
   * Click **Advanced**, select the **Manually assigned variables** check box, and type `{!Saved_Tax_Identifier}` in the **Selected Tax Identifier** field.\
     \
     ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/y2asZQS6exTnGmUJvmbZ/drb2b_taxidnetifer_attributes.png)
9. Click **Done**.
10. Click **Save as**.
11. Enter the name of the custom subflow in the **Flow Label** field (for example, `DR Checkout Summary`) and click **Save**.\
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/6Yzn74nIqG4ngkY0Pijk/Save%20as%20a%20new%20flow%20DR%20Checkout%20Summary.png)
12. Click **Activate**.\
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/CjMa5rcYEXy56gCNTBv4/Cart%20to%20%20Order%20Summary%20layout.png)
