I just had the same issue with my new pastel female, not eating from the moment I got her.
Was about 8 weeks already. She was in a glass tank with proper temp/humidity and enough hides. Tried everything, but no luck. Last option was to put her in my curver rack, and that was the solution. After 2 days in the rack feeding day arrived and she ate without any problems, currently no problems for a few weeks in a row.

I guess some just cannot function properly in a glass tank, to much stress from the environment. Don't know if this is the case for your snake, but maybe this info can help you.