A 15-year-old girl who was raped inside a Jersey City motel escaped her attacker and then hid inside a nearby gas station convenience store, authorities said.

Xavier Patten, 21, of 19th Street, was arrested July 15 by the Hudson County Prosecutor’s Office Special Victims Unit and charged with two counts of sexual assault and one count of endangering the welfare of a child.

Patten is accused of forcing himself on the teenage girl at a Tonnelle Avenue motel on July 7. However, the girl was able to run away and report the crime to an employee at the nearby gas station, a criminal complaint states.

The attendant told police that a girl wearing a red dress had come into the mini-market and hid in the back of the store before a man came looking for her. The employee told the man the girl had already left the store and was yelling at the time, the complaint states.

The court document alleges Patten forced himself on the girl despite her telling him no. She eventually bit his finger and ran out of the motel room, the complaint states.

Patten’s detention hearing Friday was adjourned when his attorney, James Lisa, asked for time to get the girl’s phone records which he said show she presented herself out as being an adult.

Lisa said the girl posed as a 25-year-old woman on her Facebook page and that she voluntarily met Patten at the motel, adding that Patten was unaware of her true age.