virtual CartExtension.CheckoutPlaceOrder

Entry point for the Cart validations during Place Order. The Salesforce app will call the validate method when starting Place Order validations. To implement custom validation orchestration and handling logic, extend this class and override the validate method.

Constructors 

global CheckoutPlaceOrder() 

Default constructor


Methods 

global virtual PlaceOrderResponse validate(PlaceOrderRequest request, List<String> domainList) 

Calls specific validation that validates the given cart. Can be overridden with custom logic. To access the overridden method, call super.validate(). Returns PlaceOrderResponse.

Parameters 

ParamDescription
PlaceOrderRequestThe CartExtension.PlaceOrderRequest to act on.
domainListA list of domain names to validate against. Supported values are: TAXES, PRICING, PROMOTIONS, PAYMENT, SHIPPING.

Newer Version Available

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

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!