How to implement donations

I’m new to web development and I’m assessing what kind of content I want to host and also way to self-sustain the hosting of my site. Thinking about donations I don’t know where to start. How are donations implements? Where should I look at? Thank you