Skip to content

validatePay

validatePay(values, ships): FieldErrors

What the form checks before it asks Commerce anything. A message names what is wrong with the field and never repeats what was typed. The email and the country are always needed; the recipient, first address line and city only when something in the cart ships (Commerce refuses a checkout without them, with address_required).

PayValues

boolean

FieldErrors