B2C Commerce Hooks
Customizes Salesforce B2C Commerce business logic by registering and managing OCAPI, SCAPI, and system extension points.
This skill provides comprehensive guidance for implementing and managing hooks in Salesforce B2C Commerce (SFCC). It facilitates the registration of OCAPI/SCAPI hooks for extending API resources, system hooks for core business logic like order calculations and payments, and the creation of custom extension points using the HookMgr API. This is a critical tool for developers who need to customize storefront behavior, integrate third-party services within the transaction lifecycle, and ensure consistent business logic across both legacy and modern Salesforce commerce interfaces.
主な機能
014 GitHub stars
02Data persistence patterns between hooks using request.custom and RESTResponseMgr
03Implementation of system hooks for order calculation, shipping, and tax logic
04Standardized patterns for payment authorization, capture, and refund hooks
05Custom extension point creation and execution via HookMgr
06Registration of OCAPI and SCAPI hooks for API resource extension
ユースケース
01Adding custom validation or data transformation to OCAPI/SCAPI basket and checkout requests
02Overriding default order calculation or tax logic with third-party service integrations
03Implementing custom payment service provider (PSP) logic for authorization and settlement