LogoLogo
Partner Integrations
Salesforce Lightning B2B Commerce App 2.0
Salesforce Lightning B2B Commerce App 2.0
  • Salesforce Lightning B2B Commerce App 2.0
  • Introduction
    • How it works
    • What's new in version 2.0
  • Upgrading to version 2.0
  • Integrate the Salesforce Lightning app
    • Step 1: Install the Digital River app
    • Step 2: Configure the Digital River app
    • Step 3: Register external services
    • Step 4: Configure DCM logs
    • Step 5: Add custom fields to the page layouts
    • Step 6: Enable email deliverability
    • Step 7: Import ECCN codes, tax groups, and tax types
    • Step 8: Configure and synchronize the products
    • Step 9: Schedule backend jobs
    • Step 10: Set up integration between Salesforce and Digital River
    • Step 11: Set up webhooks
    • Step 12: Configure landed cost
    • Step 13: Manage permission sets
    • Step 14: Configure shipping integration
    • Step 15: Integrating refunds
    • Step 16: Configure the From email address
    • Step 17: Integrate the Digital River components into the Commerce storefront
      • Integrate the Digital River components into the B2B Commerce LWR template
        • Add components to the Checkout page
        • Add custom components outside of checkout
      • Integrate the Digital River components into an asynchronous checkout flow
        • Custom components used in the checkout subflows
        • Subflow configuration
          • Configure the delivery method subflow
          • Configure the Checkout Summary subflow
          • Configure the Payment and Billing Address subflow
            • Edit the Payment Method screen
            • Edit the decision elements
            • Link screen components
          • Configure the shipping address subflow
            • Configure the shipping address screen
        • Configure the main checkout flow
      • Integrate the Digital River components into a synchronous checkout flow
        • Deploy flows using Salesforce Workbench
        • Update the flow nodes in the synchronous checkout flow
          • Create custom variables
          • Delete nodes
          • Connect nodes
          • Modify nodes
          • Add nodes
        • Configure screens for a customized synchronous flow
          • Add custom components to screens in the synchronous checkout flow
          • Configure the Shipping Options screen
          • Configure the Delivery Method Screen
          • Configure the Checkout Summary screen
          • Configure the Payment And Billing Address screen
          • Configure the Place Order Confirmation screen
      • Add custom components to pages (Aura)
        • Drag and drop (custom) components
    • Step 18: Test the Salesforce Lightning app integration
    • Step 19: Consider recommended extensions
  • Extend the Salesforce Lightning app
    • Customizing the Lightning web components
      • Designer attributes
        • Designer attributes for LWR
        • Designer attributes for Aura
      • Components
        • Buyer info component
        • DR util component
        • DR Terms component
        • Checkout summary component
        • Order Summary component
        • Place order component
        • Payments component
        • Payment details component
        • Tax identifier component
        • DR compliance component
        • Address details component
        • Offline refund component
        • Hide checkout summary component (Aura only)
    • Extend the Ship From address
    • Extend the webhook framework
    • Configure subscriptions
    • Shipping choice extension point
    • Customer credit
      • addCustomerCreditSourceToCheckout
      • deattachPaymentToCheckout
      • getAmountRemainingforCheckout
      • getCartDetailsById
      • Publishing connector events
    • Tax calculation
    • Overriding Digital River CSS
    • Mapping custom fields (LWR only)
    • Add a spinner component (LWR only)
  • User guide
    • Regulatory fees
    • Tax certificates
    • Tax identifiers
    • My wallet
    • Customer credit
    • Checkout and order creation
    • Fulfillment/cancellation flow
    • Refunds
    • Offline refunds
    • Invoices and credit memos
  • Support
  • Appendix
    • Custom fields and objects
    • Contact point address
    • Multi-currency support
Powered by GitBook
On this page
  1. Integrate the Salesforce Lightning app
  2. Step 17: Integrate the Digital River components into the Commerce storefront
  3. Integrate the Digital River components into an asynchronous checkout flow

Configure the main checkout flow

Learn how to configure the main checkout flow.

PreviousConfigure the shipping address screenNextIntegrate the Digital River components into a synchronous checkout flow

Last updated 1 year ago

To configure the main checkout flow:

  1. Click Setup .

  2. Type Flows in the Quick Find field and click Flows.

  3. Click Checkout Flow Template. The Flow Builder opens in a separate tab.

  4. Create the subflow element for all the custom subflows (for example, the , , , and ) created in the previous steps.

    1. Drag the Subflow element from the left panel to the right panel.

    2. Type the custom subflow name (for example, DR Shipping Address) in the Reference Flow field and click the item (for example, DR Payment and Billing Address) in the search results.

    3. Type the name of the subflow in the Label field (for example, DR Payment and Billing Address).

    4. Type the appropriate value listed in the for the custom subflow in each field. The following example shows the settings for the DR Payment and Billing Address subflow.

    5. Under Set Input Values, toggle cartId, currentState, nextState, orderId (if applicable) to Inlude. Toggle Saved_Tax_Identifier (if applicable) to Don't include.

  5. Replace the OOTB flows with custom flows.

    • Shipping Address: DR Shipping Address

    • Delivery Method: DR Delivery Method

    • Checkout Summary: DR Checkout Summary

    • Payment and Billing Address: DR Payment and Billing Address

  6. Click Save As and enter a name for the main checkout flow.

  7. Click Save, then click Activate.

Subflow settings

Subflow
Settings

DR Shipping Address

Cart Id: {!cartId} Current state: {!mainCheckoutSession.State} Next state: Inventory

DR Delivery Method

Cart Id: {!cartId} Current state: {!mainCheckoutSession.State} Next state: Taxes

DR Checkout Summary

Cart Id: {!cartId} Current state: {!mainCheckoutSession.State} Next state: Cart To Order Saved_Tax_Identifier: {!Saved_Tax_Identifier}

DR Payment and Billing Address

Cart Id: {!cartId} Current state: {!mainCheckoutSession.State} Next state: Activate Order Order Id: {!mainCheckout Session.OrderId}

DR Shipping Address
DR Payment and Billing Address
DR Checkout Summary
DR Delivery Method
subflow settings table