It wasn’t seamless, but Chris Flexen earned his first victory as a New York Met this season.

Coming into the season with seven viable starting pitcher options, no one expected to see Flexen taking the ball every fifth day in August.

“I wasn’t expecting it this soon,” Flexen said before his first big-league start against the Padres at Petco Park on July 27, “I hoped to be up here, whenever it happened. But it was pretty shocking. I was pretty stunned.”

While it’s hardly the strangest thing that has happened this year, the 23-year-old is working through the kinks of being a major leaguer after making the jump straight from Double-A.

“Don’t leave a ball over the middle of the plate,” Flexen said, referring to the two home runs he allowed on the evening. “Obviously, I still did that, gave up two home runs tonight but I think the biggest thing was being able to execute pitches.”

The Mets offense gave the righty an early lead, as Michael Conforto and Yoenis Cespedes each launched solo homers in the first inning off Rangers starter A.J. Griffin.

Griffin, who found out three hours prior to game time that he was starting, surrendered another home run, this time a two-run shot to Travis d’Arnaud in the second.

Flexen held Texas scoreless until the fifth inning, when Joey Gallo flexed his muscles and smacked his 31st home run of the season to center field.

That same inning, the rookie starter wrapped a double to left field for his first big league hit.

The newest member of the 3,000 hit club, Adrian Beltre, cut the deficit in half with his 11th long ball of the season to lead-off the sixth. Flexen walked former Met Carlos Gomez two batters later which subsequently chased him from the game.

Texas got within one later in the inning, but Asdrubal Cabrera gave the Mets a bit of breathing room in the seventh with a run-scoring double.

AJ Ramos earned his first save as a Met in the ninth, but not after allowing a home run to Robinson Chirinos, the sixth long ball of the evening.

“He’s one of those guys that’s the future here, and so, once in a while, you’ve got to have some patience and you’ve got to bite the bullet and give them a little chance to get a sense of what it takes to pitch in the big leagues,” Collins said of Flexen, who improved to 1-1 on the season with the win.

“You saw a better slider tonight than he’s had. Used his changeup a little bit more effectively,” Collins continued. “After the third inning, he just kind of settled in. He really got comfortable and threw his fastball with a little bit better command.”

The Mets improved to 7-5 in interleague play in 2017 and 185-169 (.523) all-time in interleague action. The .523 winning percentage in interleague play is the best all-time among NL clubs.With tonight’s loss, Texas is now 11-5 in Interleague play in 2017.

For Flexen, tonight’s win was important to end the Mets recent skid, but more important for him and the team’s future.