Configure Asynchronous Mode for the WorldPay Processor

The WorldPay payment processor sends responses using synchronous or asynchronous modes. With asynchronous mode, transaction responses can be immediate or delayed. The WorldPay provider setting must be configured to enable asynchronous processing.

Contact Salesforce Support to install the WorldPay cartridge in your Salesforce B2C Commerce instance.

  1. In Order Management Administration, click Settings > Preferences > External Processors > Payments.
  2. On the Payment Processors page, select the WorldPay payment processor. If not yet added, select WorldPayGlobal 1.4 from the Processor dropdown list. Click Add. See Manually Configure the Payment Processor for general instructions.
  3. Scroll down to the Processor settings for WorldPay.
  4. Select Yes from the AsyncNotificationEnabled dropdown list.
    A Notification URL appears. Here is an example URL: https://your_domain_name/services/Processors/WorldPay/WorldPayNotificationHandler.ashx?domain=your_domain_name&token=TBD&cppg=d2db2020-f21c-4cf3-9b61-3a23bedbc3f5

    You are prompted to create a Service user account, generate an API token, and then insert that token in the URL where it says token=TBD.

  5. If a service account exists with a generated token, go to step 7.
  6. Create a Service user account to generate a token if a token has not yet been generated.
    1. In Order Management Administration, click Security > Users to open the Security Manager.
    2. Click New User to create a service user account for your application to use.
    3. Set the User Type field to Service.
    4. Assign the Administrator role to the user account.
    5. Click Update to save the new account.
    6. Return to the Security Manager page and click search for a list of user accounts. Service user accounts can be identified in search results by the computer icon in the Type column.
    7. Click the Service user account to open the account fields.
    8. From the API Tokens section, click Generate Token.
  7. To set up the notification end point and Capture Delay from the WorldPay portal, log into the WorldPay portal.
  8. Click Profile > Merchant Channel to set up the notification end point.
  9. Copy and paste the URL that includes the token generated in Order Management > Security > Users in the HTTP field in the Merchant Channel section.
  10. Select No for the Client Certificate.
  11. Click Save Settings.
  12. To set up Capture Delay, click Profile > Configuration Details and select On in the Capture Delay dropdown in the Payment Service Details section.
  13. Click Save.