وما منعهم أن تقبل منهم نفقاتهم
And nothing prevents their contributions from being accepted from them,
Allah mentions the reason behind not accepting their charity from them,
إﻻ أنهم كفروا بالله وبرسوله
except that they disbelieved in Allah and in His Messenger.
and the deeds are accepted if they are preceded with faith,
وﻻ يٲتون الصﻼة إﻻ وهم كسالى
and that they came not to the Salah except in a lazy state.
Therefore, they neither have good intention nor eagerness to perform the acts (of faith),
وﻻ ينفقون إﻻ وهم كارهون
and that they offer not contributions but unwillingly.
The Truthful, to whom the Truth was revealed, Muhammad, peace be upon him, said that;
Allah does not stop giving rewards until you (believers) stop performing good deeds, and that Allah is Tayyib (Good and Pure) and only accepts what is Tayyib. This is why Allah does not accept charity or good deeds from the people described in these Ayat, because He only accepts it from those who have Taqwa