Developer Preview
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Entry point for the Cart validations during the Place Order Actions API. The Salesforce app will call the validate method when starting Place Order Actions API validations. To implement custom validation orchestration and handling logic, extend this class and override the validate method.
Default constructor
Calls specific validation that validates the given cart. Can be overridden with custom logic. To access the overridden method, call super.validate(). Returns PlaceOrderResponse.
| Param | Description |
|---|---|
PlaceOrderRequest | The CartExtension.PlaceOrderRequest to act on. |
domainList | A list of domain names to validate against. Supported values are: TAXES, PRICING, PROMOTIONS, SHIPPING. |
Key considerations for using the CheckoutPlaceOrder extension:
PlaceOrderValidationException and provide the corresponding message in the exception. The message is displayed to the buyer exactly as defined. Merchants are expected to handle localization, ensuring that the message is translated appropriately for the buyer’s locale.See Also
Developer Preview