# 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](/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-13-manage-permission-sets.md)
* [Configuring tax codes and ECCNs for products](/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-7-import-eccn-codes-tax-groups-and-tax-types.md)
* [Configuring custom fields on various pages](/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-5-add-custom-fields-to-the-page-layouts.md)
* [Configuring custom components on various pages](/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.md)
* [Configuring various flows/subflows](/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.md)

## 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](/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/user-guide/fulfillment-cancellation-flow.md) for instructions on how to test this process.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-18-test-the-salesforce-lightning-app-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
