The home side created the majority of the early chances, and managed to take the lead when one of three trialists included in their starting lineup drilled the ball past Kelle Roos.
Their lead lasted just 10 minutes though, as Johnny Russell picked out Martin with a through-ball, leaving the striker with a simple finish to level just before the break.
The visitors took the lead for the first time just a few minutes after the second half got underway when Simon Dawkins was brought down in the box.
Having already found the target in the first half, Martin stepped up the take the penalty, firing it into the right corner to add his second of the afternoon.
However, Martin found his third just six minutes later, hitting the ball first time from a Hendrick cross to secure the match ball.