Cert++
Close

Registering and mapping a custom integration or extension to a store

Key Takeaway

A store runs your custom Apex only after you register the class with a RegisteredExternalService record and map it with a StoreIntegratedService record. A payment gateway needs only the StoreIntegratedService record.

A custom checkout integration or Commerce extension is only an Apex class until you tell Salesforce what the class provides and which store uses it. You do that in two steps: register and map. Integrations and extensions register differently, and payment gateways skip registering.

Register, then map

Setup has two steps after the Apex class exists: register, then map.

RegisterMap
Record you insertRegisteredExternalServiceStoreIntegratedService
What it saysWhat the class providesWhich store uses the provider
What the record doesMarks the class as a provider of a certain typeLinks that provider to one WebStore

The store runs the custom Apex only when the class is both registered and mapped for that store.

RegisteredExternalService and StoreIntegratedService both need the B2B Commerce license and API version 49.0 or later.

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.