FILTER BY TAG

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 fallback
Webhook subscriptions are managed from a Business Manager page provided by the
bm_cybs_sfra
cartridge.
Prerequisite
  1. Ensure
    bm_cybs_sfra
    cartridge is on the Business Manager cartridge path (see Configure Visa Acceptance Solutions for Salesforce B2C Commerce)
  2. Go to
    Administration > Organization > Roles & Permissions
    select the role, then go to
    Business Manager Modules
    , select the required context then enable
    Webhook Manager
    under
    Visa Acceptance
    .
  3. For the
    Unified Checkout
    webhook, the Response Message Level Encryption key must be loaded and configured before registering the webhook. See
  4. Webhook Groups and Events
    The cartridge manages two webhook groups. Each notification is delivered to a controller route in the storefront cartridge.
    Group
    Product
    Event Types
    Notification Route
    Fraud Management
    Decision Manager
    risk.casemanagement.decision.accept, risk.casemanagement.decision.reject
    WebhookNotification-dmNotification
    Fraud Management
    Fraud Management Essentials
    risk.profile.decision.review, risk.casemanagement.decision.accept, risk.casemanagement.decision.reject
    WebhookNotification-dmNotification
    UC Webhook Events
    Unified Checkout
    uc.orders.transactionresults
    WebhookNotification-paymentNotification
    Subscribe to Webhooks
  5. Enable the site preferences for the required webhooks, Decision Manager within
    Salesforce Default Acceptance Configuration
    and Unified Checkout within
    Secure Integration Configuration
    .
  6. Click
    Sync
    . The cartridge will subscribe (or update) each enabled webhook based on the set Custom Site Preferences, and stores the subscription state.
  7. Confirm each subscription has an
    ACTIVE
    status. If the status is
    PENDING_REVIEW, INACTIVE,
    or
    SUSPENDED
    , the subscription is not yet live. Wait up to 15 minutes and
    Sync
    again. Please contact Support if the status does not change to
    ACTIVE
    .

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 use
    Run Now
    to refresh the Visa Acceptance payment status for those orders.