B2BCheckoutController Class
Communicate with simple checkout Apex methods to work with data related to B2B Commerce checkout.
You must specify the sfdc_checkout namespace when creating an instance of this class.
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.
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.
public static void licenseCompliance(String cartId, String orderId)
-
cartId:
Type: String
The
cartIdof a web cart from which an order is created. -
orderId:
Type: String
The
orderIdof the order you created from the cart.
Type: Void