Configure Webhooks in Authorize.net
  • 06 Oct 2023
  • 1 Minute to read
  • Dark
    Light

Configure Webhooks in Authorize.net

  • Dark
    Light

Article summary

  1. Navigate to your connected Authorize.net account dashboard.
  2. Click Account tab > Settings > Webhooks.H_02_21_configure webhook authdot 1
  3. Click Add endpoint.
  4. Define a Name.
  5. In the Endpoint URL field, set the URL to the Salesforce webhook Site you just created. You'll need to replace the three upper-case values with your org values in this URL: https://SITE_DOMAIN_NAME/SITE_PATH/services/apexrest/bt_stripe/webhook/WEBHOOK_LABEL
    • SITE_DOMAIN_NAME = The Salesforce Domain Name for the Site you set up.
    • SITE_PATH = The Path for the Site.
      • Go to Setup.
      • In the Quick Find box, enter “Sites and Domains.” 
      • Click Sites. 
      • Click Edit next to the Site you just created. 
      • Use the value entered in the Default Web Address.AuthorizeNet_Site Path
    • WEBHOOK_LABEL = The value in the Payment Gateway Webhook Label field.
      • Go to the Payment Gateway record. 
      • Use the value in the Webhook Label field.AuthorizeNet_Webhook Label
    • NOTE: If you have multiple Authorize.net accounts connected to your Salesforce org and want to create a Webhook Endpoint for each in Authorize.net, you can use the same Salesforce Site. Change the WEBHOOK_LABEL part of the URL to the Webhook Label value on the Payment Gateway record you want to use.
  6. Set Status = "Active".
  7. Under Select Events, check "All Events."
  8. Click Save.

H_02_21_configure webhook authdot 2

URL Example

URL Template: https://SITE_DOMAIN_NAME/SITE_PATH/services/apexrest/bt_stripe/webhook/WEBHOOK_LABEL

SITE_DOMAIN_NAME = The Salesforce Domain Name for the Site you set up. To find this value, navigate to the Site record and look at the Custom URLs Related List. Use the Domain Name value. If you see more than one domain name, always use the one with “secure” in the name. These domains use “https,” which Stripe requires.

SITE_PATH = The Path for the Site. Use the Path value from the Custom URLs Related List of the Site.

WEBHOOK_LABEL = To find this value, go to the Payment Gateway record you want to use. Use the value in the Webhook Label field.

URL Result: https://adminmethods.secure.force.com/stripe/services/apexrest/bt_stripe/webhook/test