Add hook to refund html

Closes #6406