Authorize.net Webhooks, Live Mode
  • 06 Oct 2023
  • 1 Minute to read
  • Dark
    Light

Authorize.net Webhooks, Live Mode

  • Dark
    Light

Article summary

Important

To use the following instructions, you must have Salesforce administrator access to Salesforce and Authorize.net.

Once you have connected to Authorize.net, it's time to configure webhooks. Webhooks automatically send specified data from Authorize.net to Salesforce.

  1. Go to Setup.
  2. Type “Sites” in the Quick Find box.
  3. Click Sites.
  4. If a Force.com domain has not been set up, follow the instructions to create one. If have have a Force.com domain, go to the next step.

Configure your Site

  1. Enter a value for your Force.com domain.

  2. Click Check Availability.

  3. Review and accept the Site terms of use.

  4. Click Register My Force.com Domain.
    deploy_authnet_webhooks_1

  5. Click New next to Sites.
    deploy_authnet_webhooks_2

  6. Set Site Label = "Webhook".
    deploy_authnet_webhooks_3

  7. The Site Name field will auto populate.
    deploy_authnet_webhooks_4

  8. In Default Web Address, type in the same name you used for the Site Label.
    deploy_authnet_webhooks_5

  9. Set Active = “True”.
    deploy_authnet_webhooks_6

  10. Click the Active Site Home Page lookup. This will open a new window.

  11. Click InMaintenance.
    deploy_authnet_webhooks_7

  12. Click Save.
    deploy_authnet_webhooks_8

  13. Click the newly created Site Label.
    deploy_authnet_webhooks_9

  14. Click Public Access Settings.
    deploy_authnet_webhooks_10

  15. Click Assigned Users.
    deploy_authnet_webhooks_11

  16. Click Site Guest User, Webhook.
    deploy_authnet_webhooks_12

  17. Add the Blackthorn | Payments (Site Guest User) permission set to this user's record.

    • For users who want to set up webhooks with a Payments package older than v5.6, you will need to add the Blackthorn | Payments (Webhooks) permission set. You will also need to add a Sharing Rule to allow the Site Guest User to access the Payment Gateway object.
    • For packages v5.6 and later, the Blackthorn | Payments (Site Guest User) permission set is now a dual-purpose permission set. This permission set will be used for webhook setup and REST API setup.

deploy_authnet_webhooks_13

Go to Authorize.net

  1. Log into your test or production account.

  2. Click ACCOUNT.
    deploy_authnet_webhooks_14

  3. Click Webhooks.
    deploy_authnet_webhooks_15

  4. Click Add Endpoint.
    deploy_authnet_webhooks_16

  5. Define a Name for the endpoint.
    deploy_authnet_webhooks_17

  6. Copy and paste the URL below into the Endpoint URL field.
    "https://SITE_DOMAIN_NAME/SITE_PATH/services/apexrest/bt_stripe/webhook/WEBHOOK_LABEL"
    deploy_authnet_webhooks_18

  7. Without closing Authorize.net, go back to Salesforce and copy the Site URL for the Site you created.
    deploy_authnet_webhooks_19

  8. Replace “https://SITE_DOMAIN_NAME/SITE_PATH” with your Site URL.
    deploy_authnet_webhooks_20

  9. Without closing Authorize.net, go back to Salesforce and click the App Launcher.
    deploy_authnet_webhooks_21

  10. Select Blackthorn | Payments (Admin).
    deploy_authnet_webhooks_22

  11. Click the Payment Gateways tab.
    deploy_authnet_webhooks_23

  12. Go to the Payment Gateway record you want to connect to webhooks and copy the value you placed in the Webhook Label field.
    deploy_authnet_webhooks_24

  13. Replace “WEBHOOK_LABEL” with the value from your Payment Gateway.
    deploy_authnet_webhooks_25

  14. Set Status = “Active”.
    deploy_authnet_webhooks_26

  15. Check All Events.
    deploy_authnet_webhooks_27

  16. Click Save.

You have successfully setup your Authorize.net webhook!