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

See also: