LogoLogo
Connectors
Salesforce B2B Commerce App 2.0
Salesforce B2B Commerce App 2.0
  • Salesforce B2B Commerce App 2.0
  • Introduction
    • How it works
    • Before you begin
    • Enabling Digital River fulfillments
  • Integrating the Digital River Salesforce B2B Commerce App
    • Step 1: Install the Salesforce B2B Commerce App
    • Step 2: Create page labels
    • Step 3: Configure the Salesforce B2B Commerce App
    • Step 4: Add custom Salesforce B2B Commerce App fields to page layouts
    • Step 5: Enable email deliverability
    • Step 6: Import ECCN codes, tax groups, and tax types
    • Step 7. Update the Product Sync settings
    • Step 8: Set up Digital River fulfillments
    • Step 9: Configure CC Admin settings
    • Step 10: Schedule backend jobs
    • Step 11: Manage permission sets
    • Step 12: Test the Digital River App Configuration
    • Step 13: Configure the Salesforce B2B Commerce App Logs
    • Step 14: Override the default App implementation
  • Uploading tax certificates (US TEMS)
  • Managing subscriptions
  • Managing regulatory fees
  • Issuing refunds
  • Support
  • Salesforce B2B Commerce App logs
  • Version number
Powered by GitBook
On this page
  • Step 9a: Create a service override for the Tax Calculation API class
  • Step 9b: Create configuration module for payment type
  • Step 9c: Create configuration metadata for Payment DR Module
  • Modules
  • Step 9d: Create configuration settings for a storefront
  • Modules
  • Step 9e: Refresh the Configuration Cache
  1. Integrating the Digital River Salesforce B2B Commerce App

Step 9: Configure CC Admin settings

Learn how to configure CC Admin settings.

PreviousStep 8: Set up Digital River fulfillmentsNextStep 10: Schedule backend jobs

Last updated 4 years ago

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. Click Tax under Integrations.

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

  5. 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. Select Configuration Modules.

  3. 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.

Module

Name

API Name

Description

Payment DR

Edit Page

edit

Edit page for Payment DR

Payment DR

New Page

new

VisualForce page leveraged for saving new Drop-in payment information via the My Account page

Payment DR

Pay Page

pay

VisualForce page for rendering the Payment DR on the Checkout page

Payment DR

Proc

proc

Payment processor for backend processing

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:

    • 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.

  1. 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:

Module

Configuration

Page

Value

Body Includes Begin

Enabled

Order View

TRUE

Body Includes Begin

Enabled

Order Confirmation

TRUE

Body Includes Begin

Enabled

Check Out

TRUE

Body Includes Begin

Page Include Name

Order VIew

digitalriverv2__DRB2B_OrderConfirmation

Body Includes Begin

Page Include Name

Order Confirmation

digitalriverv2__DRB2B_OrderConfirmation

Body Includes Begin

Page Include Name

Check Out

digitalriverv2__DRB2B_OrderReview

Body Includes End

Enabled

My Account

TRUE

Body Includes End

Enabled

Check Out

TRUE

Body Includes End

Page Include Name

My Account

digitalriverv2__DRB2B_MyAccount

Body Includes End

Page Include Name

Check Out

digitalriverv2__DRB2B_PaymentProcessor_Checkout

Checkout

Payment Types

all

dr

Checkout

Use Default

Check Out

TRUE

My Account

Use Default

My Account

FALSE

My Account

Override Flow

My Account

TRUE

My Wallet

Payments

all

dr

Order Review

Show Total Surcharge

all

TRUE

Order Review

Show Surcharge

all

TRUE

Payment

White List

all

cc_pmt_PO_New,cc_pmt_PO_Pay, digitalriverv2__DRB2B_Payment_DR

Payment DR

New Page

all

digitalriverv2__DRB2B_MyWallet_Payment_DR

Payment DR

Proc

all

digitalriverv2.DRB2B_CCPaymentProcessor

Payment DR

Edit Page

all

digitalriverv2__DRB2B_MyWallet_Payment_DR

Payment DR

Pay Page

Check Out

digitalriverv2__DRB2B_Payment_DR

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.

Click New to create the Edit Page configuration metadata for the configuration module.

Use the information associated with the to complete the Edit Page configuration metadata. Note: Don’t select the Externally Safe check box.

From CC Admin, click Global Settings in the upper-right corner and select your storefront (for example, DefaultStore). Note: After selecting the storefront, the select box will still display Global Settings. However, the left navigation pane will display <storefront name>SETTINGS and the options associated with the store.

Click Configuration Settings under <storefront name> SETTINGS.

Select the module name (for example, Body Includes Begin from ) from the Module dropdown list.

To create a new page setting for the module, click New. The New Page Setting dialog appears.

Complete the fields using the information from the table.

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

Click Global Settings to return to the Global Settings page.

Click Configuration Cache Management under GLOBAL SETTINGS.

Click Refresh List. You may have to click the Refresh link several times before the build completes. When complete, a new configuration identifier appears under the CONFIG ID column.

Modules
Modules
module
Modules