This is not true. Customers can claim their point-of-sale donations on their taxes, but the business that collects the donation can not.
https://taxpolicycenter.org/taxvox/who-gets-tax-benefit-those-checkout-donations-0
Edit: My link is for USA, but my understanding is that the principle holds in most places.