Add refund handling to template initializer