- 02 Apr 2024
- 1 Minute to read
- Print
- DarkLight
Configure Webhooks in Authorize.net
- Updated on 02 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- Navigate to your connected Authorize.net account dashboard.
- Click Account tab > Settings > Webhooks.
- Click Add endpoint.
- Define a Name.
- 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.
- 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.
- 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.
- Set Status = "Active".
- Under Select Events, check "All Events."
- Click Save.
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