Last I investigated, they were pretty clear that Google acts as an agent, but you are buying from the developer.
EDIT: Just checked an invoice and it says "You've made a purchase from Udemy Inc on Google Play". So clearly they intend the transaction to be between developer and customer.
Afaik google acts as merchant of record, so the transaction is not with the developer
And what entity received your money exactly?
The playstore makes it rather clear I'm buying from Google. And shows the developer information of course. But it's always been Google who took my money.