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

See also: