How is a payment method's validate() used?

See also: