added payment grouping code and auth stamp