A 24-year-old woman stopped a rape near trendy McCarren Park in Greenpoint by giving her attacker 20 bucks, cops said.

The woman was walking near Leonard Street and Bayard Street around 11:20 p.m. Saturday when the creep grabbed her by the neck and fondled her genitals, according to police.

The sicko told the terrified woman “I’m going to have sex with you” as he assaulted her, cops said.

The 24-year-old then offered the fiend money not to rape her, which he agreed to.

The two walked to a nearby ATM and the woman paid off her would-be rapist with just $20, police said.

The woman was not seriously injured in the attack and refused medical attention at the scene, according to cops.

The suspect is a black male. He was still at large Thursday night, cops said.