Since an endoscopy was done and no positive findings were detected, conditions like gastritis are ruled out.
However, other conditions in this region, like pancreatitis, need to be ruled out.
You need to undergo an Ultrasound of the abdomen, this can detect conditions of the pancreas, gall bladder, liver, etc. which can cause these symptoms.
At the same time, since your doctor feels it is due to stress, you should take active measures to treat this stress.
You can discuss with your doctor about doing a Saliva test for stress. This detects corticosteroids in the saliva which are raised in stress/panic. Hence if you are having anxiety, this test will confirm this and you can consider your symptoms to be arising from stress only and not a physical problem.
A psychosomatic disorder does not mean that the person in question is imagining all her illnesses, it just means that her stress and/or depression is manifesting as physical problems. This is a real illness that she is suffering from, not 'just in her mind'. You should consider the option of a psychiatrist consultation. Psychological diseases are as much diseases as physical diseases. We need to get them treated as matter of factly as we treat a physical disease. The proper specialist for treating a psychological condition is a psychiatrist. You must approach a psychiatrist and discuss your symptoms with him. There are a wide range of drugs like antidepressants
and anti anxiety drugs which will no doubt help you to regain control of your life.
I hope my answer has helped you. Please click on the green 'accept' button below for accepting this answer. Feedback/Bonus will be appreciated.