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: Philadelphia's Gun Violence Epidemic Continues To Have Devastating Impact On City's Youth

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

READ MORE: Here Is Where The Pennsylvania Primary Race For The Senate Seat Stands

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

MORE NEWS: Recent Coastal Storm Uncovers Historic 'Ghost Tracks' On Higbee Beach In Cape May, And It's Not 1st Time

Wawa will also upgrade its security.