That's definitely not how it works in the UK (at least not on a personal level, limited companies are different). A donation has to be money, goods, or something like shares, property and such like. Just giving a day of your time and expertise would not be acceptable. If you received payment and then subsequently donated the same amount back to the charity I guess that would be ok as long as the paper trail was complete.
edit :- to correct meaning "not"