Witnesses say the gunman pushed the motorist into the vehicle and was attempting to drive off.
"He started shoving him, punching him and then when he screamed out the window, 'call 911', I walked up to the car, to the window, and told my girlfriend to call 911 and I heard the gunshot go off," a witness said.
At this point witnesses say, all the motorists that were pumping gas began to scatter.
"Everybody started speeding out because somebody got shot, everybody's scared, nobody wanted to get shot," the witness said.
During the struggle, the alleged gunman was shot in the back and he ran off leaving the gun behind. He was later found sitting on somebody's porch nearby and rushed to the hospital.
The motorist also was injured.
"He sustained minor injuries to his head," Michael McGarrick of the Philadelphia Police said.
The attempted car jacking and shooting at the busy gas station during rush hour on the Boulevard has alarmed residents.
The motorist is expected to be okay and is expected to be treated and released from the hospital. The suspected carjacker remains hospitalized, but ultimately is expected to be charged with aggravated assault, attempted carjacking, and related offenses.
You can get the latest crime statisits from the Philadelphia Police, by CLICKING HERE for the force's crime data mapping site.