I took one pantoprazole tablet(40mg) this morning then after breakfast I didn't anything eat all day till I got home from work. I started having bad stomach pains after I ate that seem to get worse when I lay down. I'm still having these pains hours after it comes in waves it hurts for awhile and then I'm fine. I've been taking pantoprazole for a week or so for my esophageal encephalitis.