It wasn’t to the same extent I’m sure but the USA did have rationing during WW2 with ration books and all. It was organized through the Office of Price Administration.
Also, this kind of restricted spending is already a function of US EBT (food stamps for the poor), no digital currency needed.