Not totally unlike the law regarding this given to Moses by God in Dueteronomy.
28 If a man happens to meet a virgin who is not pledged to be married and rapes her and they are discovered, 29 he shall pay her father fifty shekels[c] of silver. He must marry the young woman, for he has violated her. He can never divorce her as long as he lives.
Except that the bible version occurred a few thousand years ago and was replaced when the new covenant came along and people became more civilized.