Just as many guests have done, I've walked back into the store a couple of times over the years to pay for something that got missed at checkout.
I wasn't concerned about consequences, because it's idiotic to punish someone for being honest, and nobody enjoys working for idiots.