writing CSV payment statistics

not perfect, but better than nothing