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

See also: