Buy Button - Custom Amount

I need users to be able to input the $ amount they would like to spend. Think of the app as a donation app. I would like for users to input how much they would like to donate, instead of me having a fixed amount. What are some work-arounds to do this?