A teacher is accused of attempting to pay a former middle school student to keep quiet after having sex with the boy.

Thao "Sandy" Doan, 27, is a math teacher and athletic coach at Raul Quintanilla Sr. Middle School in Dallas ISD. She's been arrested after police learned that her former student allegedly blackmailed her for nearly $28,000.

The victim's mother told officers that she became suspicious when she saw that her 14-year-old son was "getting large amounts of money," a police affidavit obtained by the Dallas Morning News showed.

"His clothes, his shoes, drugs, beer. He would leave the house, he wouldn't come come for days," the mother told CBS DFW, explaining that this led her to search his phone.

The boy's mother showed police screenshots of this conversations with the teacher. In them, Doan's former student tells her that he's going to call the cops, adding that he she's taking too long to get him the money. She responds by pleading with him not to reveal their relationship and says that she's obtaining a loan.

(Story continues below.)

According to CBS DFW's report, the texts showed that the educator also wrote, in part: "I know you're not playing. That's why I'm so scared. So scared that I'm thinking about suicide. I can't go to jail. I can't do that to my family. I made a huge mistake and I don't know how to fix it. Please forgive me. Please all the loan stores and banks are closed Sundays."

Doan told police that she began communicating with the victim on social media, including Instagram, and that the two had sex at a park in summer 2015. According to the affidavit, they also had sex between November and December.

The teacher told police that the month after is when the boy threatened to show authorities photographic evidence of their relationship and listed drop-off sites for "hush money" payments.