I've tweaked the code to ensure your balance updates after you top up, eliminating the need to log out and log back in for the changes to completely take effect. You will have to click the Refresh icon located on the Balance panel inside the Control Panel for it to refresh your Balance.
Please, could someone confirm if the balance refreshes correctly on your next top-up? You will have to be at or near Balance = 0 to really notice otherwise it’ll just use your old balance to allow you to start the process. Previously, the issue was that although the balance displayed correctly on the site, the session didn't update, forcing some users to have to log out and then back in. Now, a simple click on the refresh icon should update the session information as well. Let's check if this solves the problem.
Additionally, your Chat Credits and Level should now refresh when you click that refresh icon, without logging out. Let me know if everything works as expected!