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

Managing subscriptions

Understand how the Salesforce B2B Commerce App supports the processing of recurring installment payments.

PreviousUploading tax certificates (US TEMS)NextManaging regulatory fees

Last updated 4 years ago

A subscription is an arrangement for providing, receiving, or making use of something of a continuing or periodic nature on a (pre)payment plan. The Salesforce B2B Commerce App currently supports the processing of recurring installment payments.

The App comes with two batch jobs to process recurring installment payments.

  • CC Subscription Installment Processor job:

    1. Runs on a schedule and picks the CC Subscription records for which recurring Installment payment needs to be processed.

    2. Creates a CC Cart and adds the subscription product that is stamped on the CC Subscription record.

    3. The Cart status will be set to the Custom Digital River status "Open-DR" so that it is not visible in the Storefront when the user logs in.

    4. Updates the Subscription Installment Count and Installment Next Run date on the CC Subscription record.

    5. Creates a DR Subscription Process Data record and populates it with Cart, Cart Item, Parent Order Id, Transaction Payment, Stored Payment, Subscribed Product, User, Contact, Account, and other information required for DR Order submission.

  • DR Subscription Processor job:

    1. Query all DR Subscription Process Data records whose Recurring Payment flag is False and the Subscription Job Run status field is set to Open ordered by Installment Run date.

    2. This job goes through the entire checkout flow. That is, it makes calls to Digital River to get Tax, Create DR Order and Populate the DR Order information in Salesforce.

    3. If this job is successful, then it sets the Is Recurring Payment Processed flag to true and Subscription Job Run Status to Successful.

    4. If this job fails, then it sets the Is Recurring Payment Processed flag to false and Subscription Job Run Status to Open or Failed depending on the Subscription Retry Count value on this record.

      1. If the Subscription Retry count field on this record exceeds the maximum retry count set in the configuration, then the Subscription Job Run Status is set to Failed.

      2. If the Subscription Retry count field on this record is less than the maximum Retry count set in the Configuration, then the Subscription Job Run Status is set to Open so that this record is processed again next time.

The following sequence diagram explains the Recurring Installment Subscription Payment Process supported by the connector.