You have no problem to take this kind of money. It is called " non-employee compensation" and is legal income for H1 visa holder.