Usually I answer relationship questions, but I’m more than happy to address your moral dilemma! 🙂
You should have gone back to the store and immediately paid for your sandwich, but since you didn’t, go there today and explain what happened, and make a belated payment.
You made a mistake. Not taking care of it is wrong. Taking care of your payment owed late is the right thing to do.