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
- Adobe Commerce on cloud infrastructure or on-premises: 2.4.5+
- PHP 8.1+
- The magento/module-adobe-commerce-webhooks module (required by the totals collector).
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 one or both webhooks so that Adobe Commerce can call your App Builder application during quote totals collection:
- Discounts — fires during cart totals collection. See Discount use cases for registration details and response format.
- Custom fees — fires during cart totals collection, after shipping costs and discounts are computed, giving your application access to the computed shipping cost and any shipping discount. See Custom fees use cases for registration details and response format.