# How it works

Use the Salesforce Lightning app to enable Digital River to be the merchant of record for storefronts hosted on the Salesforce platform.

* Salesforce Lightning B2B Commerce maintains all pricing and product data.
* Digital River maintains minimal product data used to fulfill its requirements as the merchant of record. This data is used for tax calculations, tax collection, tax payments, and payment processing.
* Digital River automatically syncs with the Product (Product2) in Salesforce Lightning with minimal information needed to calculate taxes and enable the merchant of record functions.
* Digital River maintains a copy of the cart (WebCart), the customer, and the order.

### Digital River checkout flow

{% file src="<https://4095141294-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MS-2crEBZIcuq_A3pl1%2F-Me_wdxZWpXAv9s6gkS5%2F-Me_xtFjtHrzTWrTw0-j%2FDR_Checkout_Flow_v3_1.0.png?alt=media&token=89609457-07e6-4c6d-b32d-45cafa4a4f12>" %}
Checkout flow diagram
{% endfile %}

###
