# Configure the Payment and Billing Address subflow

You need to configure the payment subflow to add My Wall and Digital River payment support. To configure the Payment and Billing Address subflow:

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 and 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 - Payment and Billing Address**. 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. Drag the **Screen** element from the left pane and drop it in the right pane.
5. Type `placeOrderConfirmation` in the **Label** field on the **Edit Screen** dialog.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-752371bd860dea3851865b0a1fcbb7961279d209%2FEdit-screen%20-%20placeOrderConfirmation.png?alt=media)
6. Type `drb2b_paymentDetails` in the **Search Components** field and click **drb2b\_paymentDetails**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-0cc42880c4ff899d329ec7c289bb2f78a1673fad%2FSearch%20components%20-%20drb2b_paymentDetails.png?alt=media)
7. Drag **drb2b\_paymentDetails** to where you want it to appear on the Edit Screen.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-72145890d60de6670bee4373fe074ff395eef502%2FEdit%20Screen%20-%20drb2b_paymentDetails.png?alt=media)
8. Enter the following values in the fields:
   * **API Name**: Type `paymentDetails` or any other name with no restrictions.
   * **Cart Id**: Type `{!cartId}`.\
     ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-07e9caab2f2293c4a4fdac5c2cef37c0cfeb695a%2Fbrb2b_paymentDetails.png?alt=media)
9. Type `drb2b_orderSummary` in the **Search components** field and click **drb2b\_orderSummary**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-439f4204c9cfb3589de68ae0c51d978fe7fe7c11%2FSearch%20components%20drb2b_OrderSummary.png?alt=media)
10. Drag **drb2b\_orderSummary** to where you want it to appear on the Edit Screen.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-444ea2f17c109ad1dc8b363057675c87b0c5be4c%2FEdit%20Screen%20-%20drb2b_orderSummary.png?alt=media)
11. Enter the following values in the fields:
    * **API Name**: Type `orderSummary` or any other name with no restrictions.
    * **ByPass Validation**: Type `{!$GlobalConstant.False}` or `{!$GlobalConstant.True}` (default value).\
      **Note**: Set the value to `{!$GlobalConstant.False}` whenever you want to use the `drb2b_drTermComponent` on the Place Order page. 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.
    * **Record Id**: Type `{!cartId}`.
    * **Show All**: Type `{!$GlobalConstant.True}`.
    * **Show Duty**: Type `{!$GlobalConstant.True}`.
    * **Show Grand Total**: Type `{!$GlobalConstant.True}`.
    * **Show IOR Tax**: Type `{!$GlobalConstant.True}`.
    * **Show Place Order**: Type `{!$GlobalConstant.True}`.
    * **Show Regulatory Fee**: Type `{!$GlobalConstant.True}`.
    * **Show Shipping**: Type `{!$GlobalConstant.True}`.
    * **Show Subtotal**: Type `{!$GlobalConstant.True}`.
    * **Show Tax**: Type `{!$GlobalConstant.True}`.\
      ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-eac6a98bac9929f079d0a2e1fdf01c9309c23304%2Fdrb2b_orderSummary.png?alt=media)
12. 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-6880abbcc176979ef072446c447916774f4b41a0%2FSearch%20components%20drb2b_drUtil.png?alt=media)
13. Drag **drb2b\_drUtil** to where you want it to appear on the Edit Screen.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-870225d25bb39447b448ea6a436c0382afbf411a%2FEdit%20Screen%20-%20drb2b_drUtil.png?alt=media)
14. Type `drb2b_Util` or any other name with no restrictions in the **API Name** field.
15. Click **Done**.

{% hint style="info" %}
To continue editing the Payment and Billing Address subflow, see:

* [Edit the Payment Method screen](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.1/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/subflow-configuration/configure-the-payment-and-billing-address-subflow/edit-the-payment-method-screen)
* [Edit the decision elements](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.1/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/subflow-configuration/configure-the-payment-and-billing-address-subflow/edit-the-decision-elements)
* [Link the screen components](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.1/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/subflow-configuration/configure-the-payment-and-billing-address-subflow/link-screen-components)
  {% endhint %}
