Chicago police said the man had arranged to meet the alleged seller over a social media marketplace.
They arranged to meet on North Malden near Montrose in Sheridan Park around 3 p.m.
Police said the victim was met by two guys. One of them pulled out a gun and demanded the victim hand over his stuff.
The victim tried to run off, but he was shot in the chest.
The victim was hospitalized in good condition.