Wawa Inc has agreed to pay $8 million to end an investigation into a 2019 data breach that affected about 34 million payment cards used at its convenience stores and gas stations, according to Tuesday statements from the two state attorneys general co-leading the probe.