QuestionQ1

Checkout Flow Development

A developer is building a component that implements a custom Terms and Conditions checkbox at checkout in the Aura Commerce template. Which method must the developer implement on the Lightning web component to ensure that the user accepts the terms and conditions?

  • A Validate
  • B CheckValidity
  • C SaveCheckout
  • D ComponentValidity
Explanation

The checkout component’s validate method supplies the component’s validation result to the Aura Commerce checkout flow. It can prevent checkout from proceeding while the Terms and Conditions checkbox remains unselected, and allow it once the user accepts the terms.

Community Discussion

No comments yet. Be the first to start the discussion!