Actively Seeking Secondary Benefits For Acts Exclusively For Allah
In another verse God tells the ones who pray and give Zakat are only eligible to be a Muslim citizen and get the benefit of Muslims in a a Muslim government. See the verse 9: 11 فَإِن تَابُوا وَأَقَامُوا الصَّلَاةَ وَآتَوُا الزَّكَاةَ فَإِخْوَانُكُمْ فِي الدِّينِ ۗ وَنُفَصِّلُ الْآيَاتِ لِقَوْمٍ يَعْلَمُونَ ‎ So, if a certain act is made a thing of benefit for something else, it is ok to get that benefit. You did not initiate the act to get that benefit. But now it is offered you can avail it. It is the same, as cited frequently previously, that it is allowed to to trade on the occasion of Hajj. Hajj is not initiated for trade but the benefit as a side benefit can be availed. This is how God treats.
What is the purpose of winning his heart? The purpose will define.