Group A
Stirling Albion beat Peterhead 3-0 at Forthbank to go second in the table. Aberdeen are through to the last 16 ahead of their home game with Raith Rovers on Sunday. Raith will also qualify with a win at Pittodrie, or a draw and a win on penalties.
Group B
Partick Thistle are through as group winners after beating Montrose 4-2 at Firhill. Kilmarnock qualify as one of the three best runners-up thanks to their 4-1 victory over Stenhousemuir at Rugby Park.
Group C
Ross County thumped East Fife 7-0 in Dingwall to top the section. Dunfermline Athletic missed out on a place in the last 16 after a 1-1 draw with Alloa Athletic, who won the shoot-out 5-4.
Group D
Falkirk earned a 1-0 home win over Clyde to secure first place. Morton finish runners-up after a 3-1 defeat of Bonnyrigg Rose at Cappielow but seven points wasn't enough to qualify.
Group E
Arbroath finished with a 100% record after beating Airdrieonians 3-0 at Gayfield. St Mirren saw off FC Edinburgh 3-1 in Paisley but were already out.
Group F
Annan Athletic qualified in midweek when they sealed top spot. Queen of the South won 2-0 at Elgin and will take their place in the draw unless Raith Rovers claim two points against Aberdeen on Sunday. St Johnstone but Ayr United 1-0 at McDiarmid Park but had to settle for third place.
Group G
Inverness CT won the group - they drew 1-1 with Cove Rangers in the Highland capital then won the shoot-out 5-3. Livingston beat Kelty Hearts 2-0 to qualify as one of the three best runners-up.
Group H
Dundee thrashed Forfar Athletic 5-1 at the Kilmac Stadium to win the group with a 100% record. Hamilton Accies and Queen's Park were both eliminated after a 1-1 draw at New Douglas Park - Accies won the shoot-out 5-3.