# 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.
* The fulfiller updates the status of the order from `accepted` to `fulfilled` or `canceled` in Salesforce. The Digital River app sends the updated order status to Digital River, who will settle the funds.

## Digital River checkout flow

{% file src="<https://2621088907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiQ5A1tasgCx8G4Luajf9%2Fuploads%2Fp7mIROWAEdWW2WJ7v0Vf%2FDR_Checkout_Flow_v1.1_updated.png?alt=media&token=0d645384-6cf2-4285-9c5c-755c6a2e9538>" %}
