Move payAmount from template helper to collection's transform function.