Rangers bounced back from their Europa League heartbreak as they ended the season on a high at Hampden.
The first 90 minutes weren't pretty with Ellis Simms missing a huge early chance for Hearts while Craig Gordon was at his best to deny Ryan Kent and Joe Aribo.
But the moments of quality from Rangers were saved for extra-time as Ryan Kent fired home a piledriver before Scott Wright added a wonderful second to put Rangers in charge.