LogoLogo
Connectors
Salesforce Lightning B2B Commerce App 1.2
Salesforce Lightning B2B Commerce App 1.2
  • Salesforce Lightning B2B Commerce App 1.2
  • Introduction
    • How it works
    • What's new in version 1.2
  • Upgrading to version 1.2
  • Integrate the Salesforce Lightning app
    • Step 1: Install the Digital River app
    • Step 2: Configure the Digital River app
    • Step 3: Register external services
    • Step 4: Configure DCM logs
    • Step 5: Add custom fields to the page layouts
    • Step 6: Enable email deliverability
    • Step 7: Import ECCN codes, tax groups, and tax types
    • Step 8: Configure and synchronize the products
    • Step 9: Schedule backend jobs
    • Step 10: Set up integration between Salesforce and Digital River
    • Step 11: Set up webhooks
    • Step 12: Configure landed cost
    • Step 13: Manage permission sets
    • Step 14: Configure shipping integration
    • Step 15: Integrating refunds
    • Step 16: Configure the From email address
    • Step 17: Integrate the Digital River components into the checkout flow
      • Custom components used in the checkout subflows
      • Subflow configuration
        • Starter subflows
        • Configure the shipping address subflow
          • Configure the shipping address screen
        • Configure the delivery method subflow
        • Configure the Checkout Summary subflow
        • Configure the Payment and Billing Address subflow
          • Edit the Payment Method screen
          • Edit the decision elements
          • Link screen components
      • Configure the main checkout flow
      • Add custom components to pages
        • Drag and drop (custom) components
    • Step 18: Test the Salesforce Lightning app integration
  • Extend the Salesforce Lightning app
    • Extend the Ship From address
    • Extend the webhook framework
    • Configure subscriptions
    • Shipping choice extension point
    • Customer credit
      • addCustomerCreditSourceToCheckout
      • deattachPaymentToCheckout
      • getAmountRemainingforCheckout
      • getCartDetailsById
      • Publishing connector events
    • Overriding Digital River CSS
    • Customizing the Lightning web components
      • Designer attributes
      • Components
        • Buyer info component
        • Tax certificate component
        • DR util component
        • DR Terms component
        • Hide checkout summary component
        • Order Summary component
        • Place order component
        • Payment component
  • User guide
    • Regulatory fees
    • Tax certificates
    • Tax identifiers
    • My wallet
    • Customer credit
    • Checkout and order creation
    • Fulfillment/cancellation flow
    • Refunds
    • Invoices and credit memos
  • Support
  • Appendix
    • Custom fields and objects
    • Contact point address
    • Multi-currency support
Powered by GitBook
On this page
  1. Extend the Salesforce Lightning app

Customer credit

Learn how to enable the customer credit feature.

PreviousShipping choice extension pointNextaddCustomerCreditSourceToCheckout

Last updated 2 years ago

You can use the to enable several different storefront functionalities such as gift certificates and rewards points.

Salesforce B2B Commerce does not natively support gift cards or store credit functionality. Instead, this functionality is provided by 3rd party integrations. Rather than directly integrating with any of these 3rd parties, the Digital River cartridge provides several functions which make the necessary calls to Digital River to support the customer credit. The System Integrator is responsible for implementing the necessary code changes to call the methods provided by the Digital River app to connect to the 3rd-party integration.

This section describes how the Digital River app supports this feature. It also explains the steps required for you to integrate the customer credit feature based on the use case.

The connector provides the global class, methods, and events in the LWC (Lightning Web Component) to support customer credit. Use the global methods to create, delete and attach customer credit to the checkout. The connector components subscribe to events that other components can publish to trigger actions in the connector components. To integrate this feature with the storefront, call the methods and events as described in this section.

The current version of the Digital River app provides the following global class with global methods that support customer credit.

Global Class

DRB2B_CustomerCreditService

Global Methods

​

Customer credit flow

customer credit feature
addCustomerCreditSourceToCheckout
deattachPaymentToCheckout
getAmountRemainingforCheckout
getCartDetailsById
316KB
SF Lightning - Customer Credit.png
image