In any action against an unauthorized foreign or alien insurer upon a contract of insurance issued or delivered in this state or to a resident of this state or to a corporation authorized to do business in this state, if the insurer has failed for 30 days after demand prior to the commencement of the action to make payment in accordance with the terms of the contract, and it appears that such refusal was vexatious and without reasonable cause, the said insurer shall be subject to a penalty of not more than 25 percent of the liability of the insurer for the loss and an allowance for reasonable attorney's fees. The attorney's fees shall be determined by the trial court and shall be included in any judgment which is rendered in the action. Failure of an insurer to defend the action shall be deemed prima-facie evidence that its failure to make payment was vexatious and without reasonable cause. The limitations contained in this Code section in reference to the amount of attorney's fees are not controlling as to the fees which may be agreed upon by the plaintiff and his attorney for the services of the attorney in the action against the unauthorized insurer.
OCGA § 33-5-58