When is a tree contribution added to a diners bill?

This article explains how a restaurant / café customer pays their contribution

This is an opt-out rather than opt-in service. This means it automatically gets added to the customer's bill, but if they prefer not to pay this, the diner can ask their server and it will be removed.

When the customer then pays their bill, the contribution is paid as part of the bill settlement.