# Step 18: Test the Salesforce Lightning app integration

This step assumes you have completed all installation steps thus far. Commonly missed steps include:

* [Adding users to the correct permission sets](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-13-manage-permission-sets)
* [Configuring tax codes and ECCNs for products](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-7-import-eccn-codes-tax-groups-and-tax-types)
* [Configuring custom fields on various pages](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-5-add-custom-fields-to-the-page-layouts)
* [Configuring custom components on various pages](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/add-custom-components-to-pages)
* [Configuring various flows/subflows](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/integrate-the-digital-river-components-into-an-asynchronous-checkout-flow/subflow-configuration)

## Test the checkout flow - LWR&#x20;

To test the LWR checkout flow:

1. Log in to the storefront as a registered user.
2. Add one or more products to your cart.
3. Go to the shopping cart and click **Checkout**.
4. Enter the required information in the Contact Information and Delivery Options sections as applicable.
5. Check for the following as you proceed through checkout:

| Section             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Checkout Summary    | <p>Taxes, fees, and duties are displayed as applicable. </p><p></p><p>Taxes, fees, and duties are appropriately updated throughout the checkout process.</p>                                                                                                                                                                                                                                                                                                                    |
| Payment             | <p>Tax identifiers can be applied for applicable transactions.</p><p></p><p>The shopper has the option to pay using either:</p><ul><li>A stored payment method</li><li>A new payment method</li></ul><p>Available payment methods depend on the configuration of your Digital River account. In a test environment, you may use the applicable <a href="https://docs.digitalriver.com/digital-river-api/developer-resources/testing-scenarios">testing payment methods</a>.</p> |
| Digital River Terms | The shopper is presented with the Digital River terms and conditions and must agree to them before placing the order.                                                                                                                                                                                                                                                                                                                                                           |
| Compliance footer   | The Digital River compliance footer is displayed to shoppers at all times. Footer links are updated as appropriate.                                                                                                                                                                                                                                                                                                                                                             |
| Order placement     | <p>The shopper can place an order and then is redirected to the Order page</p><p></p><p>All order details are reflected as expected in Salesforce.</p>                                                                                                                                                                                                                                                                                                                          |

## Test the checkout flow - Aura

To test the Aura checkout flow:

1. Log in to the storefront as a registered user.
2. Add one or more products to your cart.
3. Go to the shopping cart and click **Proceed to Checkout**.
4. Enter the required information on the **User Information** and **Shipping** pages.

| Page           | Description                                                                                                                                                                                                                                                                                                                                                                                                            |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Order Review   | <p>This page is the first place where the Digital River integration is visible. It includes the following:</p><ul><li>Taxes, fees, and duties are displayed as applicable.</li><li><em>Digital River Terms and Conditions</em></li></ul><p><br>For US tax-exempt purchases, the user can manage tax certificates (outside checkout) and apply a global tax identifier, if applicable.</p>                              |
| Payment        | <p>On this page, the user has the option to pay using either:</p><ul><li>A stored payment method</li><li>A new payment method</li></ul><p>Available payment methods will depend on the configuration of your Digital River account. In a test environment, you may use the applicable <a href="https://docs.digitalriver.com/digital-river-api/developer-resources/testing-scenarios">testing payment methods</a>.</p> |
| Order Complete | <p>On this page, the following items are displayed:</p><ul><li>Taxes</li><li>Fees</li><li>Duties</li><li>Digital River Terms and Conditions</li><li>Payment information</li><li>Product information</li></ul>                                                                                                                                                                                                          |

{% hint style="info" %}
See [Fulfillment/cancellation flow](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/user-guide/fulfillment-cancellation-flow) for instructions on how to test this process.
{% endhint %}
