Welcome, ab. All I can think of is 'donating', and I have the feeling that's not what you're looking for. As far as I know, there isn't a word for giving something you already have in place of buying something new; other than unflattering adjectival phrases, I mean. But I reckon it's fairly common, maybe especially among families, to do this kind of exchange.