The chain has not said how many restaurants or customers could be affected.
Sonic says it is working with police and computer experts to find out what happened and the scope of the cyberattack.
But experts say hackers likely gained remote access to the machines where you swipe or insert your credit card.
Sonic has 3,500 locations across the U.S.
----------
Send a breaking news alert
Report a correction or typo
Learn more about the 6abc apps