If one event always follows another we believe the first causes the second. But it is impossible to prove, empirically or logically, that the second event happened because the first did. Causal necessity is an illusion: “The mind is carried by habit, upon the appearance of one event, to expect its usual attendant, and to believe that it will exist.” By force of habit we project necessity on to constant conjunction.
It is true that a causal connection cannot be proved. But this connection is not, as Hume claimed, a mental habit which we derived empirically from impressions of constantly conjoined events. Causal necessity is an a priori mental precondition of all possible experience. The mind, via the understanding, applies it categorically and universally to every judgement of objects of sense.
My crude summary of both of their views
One way or another the mind is responsible for the notion of causality, which we can't prove exists independent of the mind.
Is that a fair summary?