Step 11: Set up webhooks

Learn how to set up webhooks.

Digital River uses webhooks to notify the app when events occur. The following instructions explain how to register a client webhook endpoint to set up webhook integration between Salesforce and Digital River

To register the Client Webhook Endpoint:

  1. Go to Webhooks and select Create webhook.

  2. Set up the OAuth Integration and select OAuth as the authentication method.

  3. Complete the following fields:

Field name
Description

Token Endpoint

https://<<SF_OAuth_Access_Token_Endpoint>

Endpoint URL

https://<<SF_My_Domain_Name>>/services/apexrest/digitalriverv3/webhooks/

Client ID

Client Id (Consumer Key) of the Connected App "Salesforce DigitalRiver Integration" which was created in the previous step

Client Secret

Client Secret of the Connected App "Salesforce DigitalRiver Integration"

Username

Integration User's username

Password

<<IntegrationUserPassword>><<IntegrationUserSecurityToken>>

The Token Endpoint for the Sandbox environment ishttps://test.salesforce.com/services/oauth2/token and https://login.salesforce.com/services/oauth2/token for the Production environment.

The Endpoint URL address named MyDomain URL should be https://example-domain.my.salesforce.com and not the Lightning Force URL https://example-domain.lightning.force.com

Webhook event types

The Digital River Salesforce Lightning app supports the following out of the box (OOTB) webhook events:

  • order.accepted

  • order.cancelled

  • order.complete

  • order.pending_payment

  • order.review_opened

  • order.blocked

  • order.credit_memo.created

  • order.invoice.created

Ensure that all the supported Webhook events (Event types) that need to be sent to the configured Endpoint URL are selected (and saved) in the Event types section located in the Digital River Dashboard's webhook section.

Last updated