The flag ‘alreadyValidate’, if set to true (as in the above example) will skip validation of credit card details in the process order step (2). This will eventually catch the error in the third step place order.

For our needs, to catch these validation errors earlier, we are able to set the flag ‘alreadyValidate’ to false and see validation errors in step 2 itself. We then are able to make a call to the third step once all the errors are corrected.