This is against the rules and against the ethics of science. See also https://www.researchgate.net/post/Adding_scientists_to_a_paper_because_the_added_author_will_pay_APC_charges. However, there are other ways to get funding:
I share the concern of Dr Wolfgang R. Dick that this is not technically accepted in the academic community. I would also point out that there are many suitable journals in this topic which have no charges anyway.