On This Page
Webhooks
The
our platform
sends asynchronous webhook notifications to your
Salesforce B2C Commerce store for fraud decisions, and Unified Checkout
event updates.
Webhooks are the primary mechanism for keeping orders up to date. The Salesforce jobs remain
available as a fallbackWebhook subscriptions are managed from a Business Manager page provided by the
bm_cybs_sfra
cartridge.Prerequisite
- Ensurebm_cybs_sfracartridge is on the Business Manager cartridge path (see Configure Visa Acceptance Solutions for Salesforce B2C Commerce)
- Go to select the role, then go toBusiness Manager Modules, select the required context then enableWebhook ManagerunderVisa Acceptance.
- For theUnified Checkoutwebhook, the Response Message Level Encryption key must be loaded and configured before registering the webhook. See
- Webhook Groups and EventsThe cartridge manages two webhook groups. Each notification is delivered to a controller route in the storefront cartridge.GroupProductEvent TypesNotification RouteFraud ManagementDecision Managerrisk.casemanagement.decision.accept, risk.casemanagement.decision.rejectWebhookNotification-dmNotificationFraud ManagementFraud Management Essentialsrisk.profile.decision.review, risk.casemanagement.decision.accept, risk.casemanagement.decision.rejectWebhookNotification-dmNotificationUC Webhook EventsUnified Checkoutuc.orders.transactionresultsWebhookNotification-paymentNotificationSubscribe to Webhooks
- Enable the site preferences for the required webhooks, Decision Manager withinSalesforce Default Acceptance Configurationand Unified Checkout withinSecure Integration Configuration.
- ClickSync. The cartridge will subscribe (or update) each enabled webhook based on the set Custom Site Preferences, and stores the subscription state.
- Confirm each subscription has anACTIVEstatus. If the status isPENDING_REVIEW, INACTIVE,orSUSPENDED, the subscription is not yet live. Wait up to 15 minutes andSyncagain. Please contact Support if the status does not change toACTIVE.
AFTER COMPLETING THE TASK
Subscription Storage
The webhook subscription state is stored in the organization-scoped custom object
VisaAcceptanceWebhookSubscription
(keyed by
ConfigId
), which records the WebhookId, WebhookUrl,
SecurityKey, Status, BaseUrl,
and EgressPublicKey
.
The object is managed by the Webhook Manager. You do not need to edit it
manually.Fallback: Salesforce Jobs
If webhook delivery is interrupted, these jobs can be used to reconcile the order
state:
- Payment: Decision Manager Order Update: polls for Accept/Reject decisions on unconfirmed orders (fallback for Fraud Management webhooks).
- Payment: Refresh Payment Status(on-demand job): enter a comma-separated list of order numbers in the OrderNumbers parameter and useRun Nowto refresh the Visa Acceptance payment status for those orders.