Install the totals collector module

To begin using the totals collector module with the checkout starter kit, ensure that you have completed the getting started and configuration steps.

For more ideas on how you can use the totals collector module, refer to totals collector use cases.

Prerequisites

Installation

data-src=/_includes/checkout-version.md

To enable out-of-process discount totals collection (from an external service) in Adobe Commerce, install the magento/module-out-of-process-totals-collector module using the following command:

composer require magento/module-out-of-process-totals-collector --with-dependencies

Configuration

data-src=/_includes/checkout-configuration.md

After installation, register a webhook so that Adobe Commerce can call your App Builder application when quote totals are collected. The webhook runs after the core discount totals collector; your endpoint returns a JSON Patch response that is applied to the quote totals and items.

data-variant=info
data-slots=text
The totals collector currently supports discount modifications only. Other total types are not supported.

For webhook registration details and payload/response format, see totals collector use cases.