Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Method Signature String[] validate(String[] checks);
Description
Validates the given cart for the set of validation checks. This is very useful for determining the errors that need to be displayed on a page. The checks that you choose to validate are dependent upon what your page is collecting. If you're building a single page checkout then it's better to use the validateAll method below. The global cart variable is automatically submitted with this call.
Parameters String[] checks - the checks to perform. See the VALIDATE_ constants located in the checkoutapi.js file for a list of valid check constants.
Result String[]- the errors present in the current cart based upon the checks performed.

  • No labels