$customHeader
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[] getStateProvinceCodes(String country);
Description
Retrieves a list of valid states/provinces for the specified country. This can be used to display this field as a nice drop down list for certain countries. This call uses a dataset contained in the checkoutapi.js file so the call does not go remotely to UltraCart. This makes it extremely fast.
Parameters String country - The country to retrieve the states for.
Result String[]- The list of valid state/province codes. If this list is empty then UltraCart does not have a built in state list in which case the client should display the state field as a regular text field.

  • No labels