You need to return your containers at a Return and Earn machine in order to donate either on the touchscreen or through the app.
Some automated depots also support charities and allow you to donate your refunds directly. Enquire with your nearest automated depot to check which charities they support.
Find your nearest automated depot and their contact details on the map.