Newer Version Available

This content describes an older version of this product. View Latest

B2BCheckoutController Class

Communicate with simple checkout Apex methods to work with data related to B2B Commerce checkout.

Namespace

sfdc_checkout

Usage

You must specify the sfdc_checkout namespace when creating an instance of this class.

B2BCheckoutController Methods

The following are methods for B2BCheckoutController.

licenseCompliance(cartId, orderId)

If you implement your own cart-to-order process without invoking the Cart to Order flow core action, you must invoke this method to correctly track your orders for GMV (Gross Merchandise Value) recognition.

Signature

public static void licenseCompliance(String cartId, String orderId)

Parameters

cartId
Type: String
The cartId of a web cart from which an order is created.
orderId
Type: String
The orderId of the order you created from the cart.

Return Value

Type: Void