Dymocks bookshop in Australia does this at the checkout [1]. They ask you if you want to round the price up and donate the extra to charities.
[1]: https://www.dymocks.com.au/childrens-charities/round-up
[1]: https://www.dymocks.com.au/childrens-charities/round-up