मुझे लगता है कि रिफंड केवल आपके कार्ड में ही वापस जाता है और आपको कोई कैशबैक भी नहीं मिलेगा।
I think refund goes only back to your card and you will not get any cashback either.
If it really goes back to your friend's wallet, yes, it is a loot.
Anyway, there are some legends here who may give the exact answer.
If you don't get any answers, please try it yourself and let us know what happens.