This is you donating to the non-profit. You get the tax break, the company does not. I'm so sick of this misinformation because nobody actually donates on their own, which is why non-profits partner with companies for fundraising.
It's on your receipt, you get the tax break. As simple as that.
The Wolf of Wallstreet was based on a true story so stuff does work like that. It also took 10 years before he was indicted.