My question involves criminal law for the state of: Texas

i am 18 years old and i was caught shoplifting at walmart. the total amount of what i tried to shoplift was 13 dollars. as i was leaving a loss and prevention officer stopped me and asked me to follow him. i followed him to this office. they took my address and social security number. they did not make me pay for the item but i returned it. he also said i was going to be recieving a letter in the mail from walmart. so my question is am i going to be fined? if so how big of a fine? and is this going on my permanent record?

he also said that i got lucky. idk what he meant by that. he also said the police were not going to be involved in this.