B2c Hooks

Register and implement B2C Commerce platform hooks declared in hooks.json and invoked by HookMgr during OCAPI/SCAPI requests or system events. Use for hooks.json, HookMgr.callHook(), dw.system.Status, dw.ocapi.shop.* before/after/modifyResponse hooks, dw.order.payment.authorize/authorizeCreditCard, dw.order.calculate, app.payment.processor.*, SCAPI order-payment authorization and placement, rollback semantics, and request.custom transport. Do not use for external Node.js webhooks, SFRA controller middleware or prepend/append chains, scheduled job steps in steptypes.json, or Git/CI hooks.

salesforcecommercecloud 8a50f01 5 files · 67.7 KB Updated

File contents

salesforcecommercecloud/b2c-developer-tooling/tree/main/skills/b2c/skills/b2c-hooks commit 8a50f01f65

Frequently asked questions

npx skillmds@latest add salesforcecommercecloud/b2c-hooks