Test Your B2B Checkout Flow

Before you go live, make sure that you thoroughly test your B2B checkout.

Required Editions
Available in: Enterprise, Unlimited, and Developer Editions
Required Editions
Available in: B2B Commerce

Test these areas of the checkout flow.

  • Buyer facing components in Experience Builder

  • Checkout flow definition and implementation

  • Action APIs used in the checkout flow and data mapping

Test the Experience Builder components and the checkout flow manually.

To test the API actions, complete these prerequisites:

  • Publish a fully configured and populated store with products, buyers, entitlements, prices, and other necessary store elements.
  • Configure a test account with test buyers.
  • Ensure that the test orders generated by testing are separated logically from real orders and don’t have a physical or financial impact downstream.
  1. Create an Autolaunched Flow.

    1. Select Run as System Context with Sharing-Enforces Record-Level Access.

    2. Apply the input parameter TestBuyerId.

    3. Activate your flow.

  2. In the new test flow:

    1. Remove old tests that ran or failed, and clear the cart for the buyer specified by TestBuyerId.

    2. Use SOAP inserts to add items to the cart for the buyer specified by TestBuyerId.

  3. Use the Checkout APIs as actions within the test flow.

    1. Create a checkout session.

    2. Check inventory, and wait for BackgroundOperation to complete.

    3. Check prices, and wait for BackgroundOperation to complete.

    4. Calculate taxes, and wait for BackgroundOperation to complete.

    5. Calculate shipping charges, and wait for BackgroundOperation to complete.

    6. Process cart to order, and wait for BackgroundOperation to complete