@Graham *****
speaking firsthand, the problem is that you can only do that if you have a Thai bank account. And now you can only get a Thai bank account if you already have the non-o immigrant visa. So realistically, you need to get the visa before you come into Thailand.
The option of paying agents has become very unpredictable and unreliable at least for now