Hearts will face Dunfermline Athletic, Peterhead, East Fife and Elgin City in the group stages of the Betfred Cup.
The Jambos will play two home and two away games in the North Section of the competition, scheduled to begin on July 15th.
Fixture dates and TV selections will be announced next week.
The reformatted League Cup sees tied group stage games go straight to penalty shootouts, with a bonus point awarded to the winner.
Eight group winners and the four best runners-up progress to the last 16, which takes place on August 8th/9th.