Downloaded game to wrong account, can i swap the license from my friends account to mine?
Solution 1:
If anyone can help you in this instance, it's sony support.
For this, you would have to show that you made the purchase, that you were logged into the wrong account, and even then, it's rare that they'll do anything. It's possible that he could call, explain what happened, and have them refund it (Which is exceptionally rare, they list in their terms of service that purchases are non-refundable, so they'll likely say no).
Basically, you should have whoever actually made the purchase (I.E. Whoever's credit card was used) call sony support to get it refunded and then re-purchase it on the correct account. If you're polite and explain what happened, it's possible they'll issue a refund, but it's honestly hit or miss. I've been able to get a refund in store credit before, but only because I purchased the wrong version of a game (meant to buy the deluxe edition instead of standard, for example) and it sounds like store credit won't really help you here, as it would then be on your friends account.