AsyncCartProcessor Interface
Use this interface to implement asynchronous integrations in B2B Commerce.
The following are methods for AsyncCartProcessor.
-
startCartProcessAsync(integrationInfo, cartId)
The startCartProcessAsync method is called asynchronously by the integration framework. Calling this method begins cart processing for Commerce checkout.
The startCartProcessAsync method is called asynchronously by the integration framework. Calling this method begins cart processing for Commerce checkout.
public sfdc_checkout.IntegrationStatus startCartProcessAsync(sfdc_checkout.IntegrationInfo integrationInfo, Id cartId)
-
integrationInfo:
Type: IntegrationInfo
Provides values that B2B Commerce checkout APIs use to map requests to responses, necessary metadata, and context.
-
cartId:
Type: Id
ID of the WebCart object.
Type: IntegrationStatus
Status of the current integration. Possible values are SUCCESS and FAILED.
This is an example implementation of the sfdc_checkout.AsyncCartProcessor interface.
AsyncCartProcessor is a base interface. There are four interfaces that extend it, including CartInventoryValidation, CartPriceCalculations, CartShippingCharges, and CartTaxCalculations. For more information about these interfaces, including code examples and test classes, see Checkout Integrations.