Cert++
Close

Commerce extensions versus the checkout integrations framework

Key Takeaway

A webstore can use extensions or integrations, but not both. Salesforce recommends extensions, and an integration runs only when the Cart Calculate API is off.

Salesforce Commerce offers two Apex-based ways to plug custom logic or third-party services into cart and checkout: the older checkout integrations framework and Commerce extensions, introduced in Winter '24. The two differ in how you write the class, what the class can change and how you set it up. Your choice also decides whether the Cart Calculate API can stay on.

How integrations and extensions differ

The checkout integrations framework provides checkout integration points to third-party services. Commerce extensions use Apex to customize the functionality behind B2B and B2C storefronts.

IntegrationsExtensions
Coding approachYour class implements an Apex interfaceYour extension provider extends an Apex base class
CustomizationReplaces the default calculation for its area and can't build on top of itExtends or replaces default behavior, depending on the extension type
Commerce domainsOnly the 4 checkout calculators5 cart and checkout calculators, the pricing service and other services

Salesforce recommends extensions over integrations for two reasons: extensions allow more targeted customizations, and they cover more commerce domains. Integrations remain fully supported.

Salesforce Accredited B2B Commerce Developer Professional Study Guide

Checklist progress

0/124Learned

Code implementations against the 4 crucial reference implementations used in checkout and payment interfaces with in-depth knowledge of all supported actions

0/23

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Salesforce Accredited B2B Commerce Developer Professional studiers. 757 members and growing.