The draw for the last 16 takes place at Easter Road on Sunday and is live on Premier Sports following their coverage of Hibernian v Dundee, kick-off 4.30pm.
Group A
Hearts had already qualified with maximum points. Raith Rovers beat Cowdenbeath 1-0 at Central Park but it wasn't enough to take them through. Inverness CT beat East Fife 1-0 in the other game.
Group B
Hibernian host Dundee tomorrow - live on Premier Sports at 4.30pm - with both teams already through. Cove Rangers finished third after beating Forfar Athletic 1-0 at Balmoral Stadium.
Group C
St Johnstone won 3-1 at Peterhead to secure top spot. Dundee United are runners-up but don't go through. Kelty Hearts beat Brechin City 2-0 at Glebe Park in the other game.
Group D
Ross County saw off Stirling Albion 3-0 in Dingwall to secure top spot. Arbroath beat Elgin City by the same score at Gayfield to qualify as one of the four best runners-up.
Group E
Dunfermline Athletic hit back to beat Clyde 3-2 at East End Park and finish top. Falkirk are also through while Kilmarnock beat Dumbarton 2-0.
Group F
Ayr United are through after winning the shoot-out against Stranraer after a 1-1 draw at Somerset Park. Hamilton Accies were awarded a 3-0 win against Albion Rovers as Rovers were unable to fulfil the fixture due to Coronavirus but both teams were already out.
Group G
St Mirren beat Queen's Park 1-0 at Hampden to seal top spot while Partick Thistle and Morton drew 0-0 at Firhill, with Thistle winning the shoot-out.
Group H
Livingston made it four wins from four by defeating Airdrieonians 4-1 and Alloa Athletic join them in the last 16 after storming back to beat Stenhousemuir 4-2 at the Indodrill Stadium.