By CBS3 Staff

PHILADELPHIA (CBS) — A judge has approved a settlement for nearly 22 million Wawa customers who were affected by a data breach. It happened in 2019.

Wawa says customers’ debit and credit card numbers, expiration dates and cardholder names were exposed.

READ MORE: Man Killed In Road Rage Shooting In Springfield Identified, Authorities Say

As part of the settlement, impacted customers will receive $5 or $15 gift cards.

READ MORE: Judge Ketanji Brown Jackson To Be Sworn In As First Black Woman On Supreme Court

Those who suffered out-of-pocket losses will receive $500 cash.

MORE NEWS: Fire Marshal Investigating Possible Case Of Arson In Philadelphia's Overbrook Section

Wawa will also upgrade its security.