Step 9: Configure CC Admin settings

Learn how to configure CC Admin settings.

Step 9a: Create a service override for the Tax Calculation API class

Salesforce B2B Commerce (CloudCraze) does not calculate taxes out-of-the-box (OOTB). Instead, it exposes a Tax Calculation webhook which you must override. This step will implement the new business-specific tax calculations by making a call to Digital River for tax calculations to override the Tax Calculation webhook.

To create service override for the Tax Calculation API class:

  1. Go to CC Admin.

  2. Select Storefront from the Global Settings dropdown list.

  3. Set the Tax Calculation API class to digitalriverv2.DRB2B_CartTaxCalculation as shown in the screenshot above.

  4. Click Save.

Step 9b: Create configuration module for payment type

Create a Configuration Module for Digital River payment type. You perform this step at the Global Settings level. The changes you make here apply to all your storefronts.

  1. Select the CC Admin tab.

  2. Create a module for Digital River payment.

    • Click New in the Configuration Module pane. The Configuration Module dialog appears.

    • Type Payment DR in the Name field and pmt_dr in the API Name field.

Step 9c: Create configuration metadata for Payment DR Module

Configure the following custom Salesforce B2B Commerce App pages in CC Admin. They will appear in the following storefront locations: Edit Page, New Page, Pay Page, and Proc. Note that you perform this step at the Global Settings-level. The changes you make here apply to all your storefronts.

The Payment DR module should pull in all payment types configured by Digital River.

To create configuration settings for the Payment DR configuration modules:

  1. Under Configuration Modules, click the Payment DR module.

  2. Repeat steps 2 and 3 to create configuration metadata for New Page, Pay Page, and Proc. After adding the configuration metadata to the Payment Module DR, the Configuration Module should look like this:

Modules

The following table lists the required settings for each field.

Step 9d: Create configuration settings for a storefront

Custom Salesforce B2B Commerce App pages must be configured in CC Admin for them to show up in your storefront. Note that you perform this step at the storefront level. The changes you make here apply to a specific storefront. If you have more than one storefront, you should repeat this step for each storefront.

To create or update a store's configuration settings:

  1. Complete the fields using the information from the Modules table.

    • Select the module name from the Module dropdown list.

    • Select the configuration value from the Configuration dropdown list.

    • Type the page value in the Page field and select the corresponding value. Once you select it, the field shows a corresponding internal value. For example, if you type Order Confirmation and select Order Confirmation from the dropdown list, the field shows OrdCnfm.

    • Type the value in the Value field.

    • Click Create. The new module appears in the Configure Settings list and displays Delete in the ACTION column, and the name of the storefront appears in the STOREFRONT column.

  2. Repeat steps 3 through 5 for each additional row in the Modules table.

  3. Repeat steps 1 through 6 for each additional storefront.

Modules

The following table lists the DR Configuration Settings that need to be configured for each storefront:

Step 9e: Refresh the Configuration Cache

CC Admin configurations are cached. Refresh the configuration cache to ensure you can see the latest configuration changes made to the storefront.

  1. Click Build New.

  2. Click Activate under the Status column for the new configuration identifier and deactivate any previous configurations.

  3. Locate the previous cache and click Deactivate.

  4. To verify your changes, clear the browser cache and test the storefront pages.

  5. Digital River Terms and Conditions will be displayed on the Order Review page and Digital River Payment tab and the client-specific payment methods will be displayed on the Payment page.

Last updated