To get married in Thailand the man must request the certificate of free status for marriage from his Embassy.
On this document the Embassy must quantify your economic status required by the Thai authorities to proceed with the registration of the marriage.
At that point you have entered into the tangle of Thai politics that a foreigner who wants to marry a Thai woman must support her until the day of the divorce with the revocation upon expiry of the Non Immigrant Visa O.