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.
-
Create an Autolaunched Flow.
-
Select Run as System Context with Sharing-Enforces Record-Level Access.
-
Apply the input parameter TestBuyerId.
-
Activate your flow.
-
-
In the new test flow:
-
Remove old tests that ran or failed, and clear the cart for the buyer specified by TestBuyerId.
-
Use SOAP inserts to add items to the cart for the buyer specified by TestBuyerId.
-
-
Use the Checkout APIs as actions within the test flow.
-
Create a checkout session.
-
Check inventory, and wait for
BackgroundOperation
to complete. -
Check prices, and wait for
BackgroundOperation
to complete. -
Calculate taxes, and wait for
BackgroundOperation
to complete. -
Calculate shipping charges, and wait for
BackgroundOperation
to complete. -
Process cart to order, and wait for
BackgroundOperation
to complete
-