Implements custom handling of cancelling payments.