Tehmoor Hussain was blasted with a shotgun at the Katz Kutz barber shop on Wolverhampton Road in Birchills, Walsall, on May 19, 2019.
Wolverhampton Crown Court heard that Mr Hussain was sitting in a barber's chair just after 5pm when Uzair Shahid, also known as Jeeza, and Toyub Ali entered the shop, at the junction with Raleigh Street, and confronted him about money for a car.
Giving evidence in the witness box, Mr Hussain's cousin Azeem Hussain said he headed to the barber shop after receiving a call and saw his cousin being taken outside on a stretcher, ahead of being taken to an ambulance.
Azeem said: "I could see how he was.
"I said who was it, who shot you?
"He said Jeeza."
Azeem said Jeeza was a nickname for a man called Uzair.
He told the court that the first time he had seen Shahid was outside the Chilli Hut takeaway in Birchills Street, Walsall.
He said Shahid had been with others and it looked as though an argument was taking place.
He told the jury he saw him again at another takeaway and on a third occasion he had spoken to him at a petrol station in Ablewell Street.
Azeem Hussain said they spoke for a short while after Shahid asked about his car and they shook hands.
He said he had been with his cousin Tehmoor on that occasion and the pair drove off after Tehmoor had paid for the petrol.
Footage from a police body-worn camera was also shown to the jury.
It showed Tehmoor Hussain being brought out of the barber shop on a stretcher with a bandage around his stomach.
During the footage, Azeem Hussain also arrived at the scene.
When questioned whether he had actually asked his cousin who had been responsible for what had happened, Azeem adamantly replied: "I spoke to him.
"I went by him and I leaned over his face."
The court previously heard the victim was taken to Queen Elizabeth Hospital in Birmingham for treatment after emergency services were called.
Prosecutors allege the man who shot Mr Hussain was 21-year-old defendant Shahid whilst the other man involved was 19-year-old defendant Ali.
Both defendants say they either weren't there at the barber shop at the time of the incident or didn't do what prosecutors allege they did.
Mr Hussain underwent surgery at the hospital after sustaining serious injuries to his abdomen, among other injuries.
Shahid, of Lichfield Road in Walsall, is charged with attempted murder, causing grievous bodily harm with possession of a firearm with intent to endanger life.
Ali, of no fixed abode, is charged with possession of a firearm with intent to cause fear or violence.
Both deny the charges.
The trial continues.