# 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://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-236ac3ea9e3a38705205d7d99c4ed3c7977cffab%2FSetup.png?alt=media).
2. Type `Flows` in the **Quick Find** field click **Flows**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-5764a2e98b3dda9e93efeb52a420ea34521005a6%2FQuick%20Find%20-%20Flows.png?alt=media)
3. Scroll down and click **Subflow - Checkout Summary**. The Flow Builder opens in a separate tab.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-a10b9fe10406cea24ee40117b30a524d275c5d85%2FFlows%20-%20Subflow%20-%20Checkout%20Summary.png?alt=media)
4. Click the **Manager** tab and then click **New Resource**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-f9693c453a26a5867386222b6a5e77ae5fd909aa%2FManager%20tab.png?alt=media)
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://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-a59c8605887d703467315b609d96093ff9d3cc82%2FNew%20Resource.png?alt=media)
6. Click **Done**.

{% hint style="info" %}
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 **Ship To** and **Delivery Method** components.
3. Type `drb2b_drUtil` in the **Search components** field and click **drb2b\_drUtil**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-97d4bc5d3d0f9e5923cd3b86b792f515602a9d40%2FSearch-drb2b_drUtil.png?alt=media)
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://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-381ba90d06ec92e7d2ab26efed0e73885874a58f%2FAPI%20Name%20drb2b_drUtil.png?alt=media)
6. Type `drb2b_taxIdentifier` in the **Search components** field and click **drb2b\_taxIdentifier**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-52899f271d1b88bc48e8fe88ae8b7d87c42b9556%2FSearch-drb2b_taxIdentifier.png?alt=media)
7. Drag the **drb2b\_taxIdentifier** to where you want it to appear on the Edit Screen.
8. Enter the following details:
   * **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://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-f0f063238b95259d38181301d6adfb5feca28a4a%2Fdrb2b_taxIdentifier.png?alt=media)
9. Type `drb2b_drTermsElement` in the **Search components** field and click **drb2b\_drTermsElement**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-749d47cda201dc5c4da3799b86075ae725dba27e%2FSearch-drb2b_drTermsElement.png?alt=media)
10. Drag the **drb2b\_drTermsElement** to where you want it to appear on the Edit Screen.
11. Enter the following details:
    * **API Name**: Type `DR_Terms` (or any other name with no restrictions).
    * **Cart Id**: Type `{!cartId}`.
    * **Bypass Validation**: Type `{!$GlobalConstant.True}` or`{!$GlobalConstant.False}`. By default, this value should be `False`. See [DR terms component](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.1/extend-the-salesforce-lightning-app/customizing-the-lightning-web-components/components/dr-terms-component) for more information.\
      ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-48afcb52633e972f6ed9be58dbde47941ac3d6b7%2Fdrb2b_drTermsElement.png?alt=media)
12. Click **Done**.
13. Click **Save as**.
14. Enter the name of the custom subflow in the **Flow Label** field (for example, `DR Checkout Summary`) and click **Save**.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-a4c806a060cb979973d845e6c5dc2bf3cdba8962%2FSave%20as%20a%20new%20flow%20DR%20Checkout%20Summary.png?alt=media)
15. Click **Activate**.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-4e201da60d433607cceabbca649c244e568319bf%2FCart%20to%20%20Order%20Summary%20layout.png?alt=media)
