Yes, it does matter where your main place of residence is at the time of payment.
If it is in Switzerland, the corresponding taxes of the canton of residence apply, but at a reduced rate compared to other income.
If you are domiciled abroad, withholding tax is levied on the payment. In the canton of Schwyz (where our foundations are headquartered), the maximum rate is 4.80% (depending on the amount).