The Albion midfielder scored the second in 2-0 friendly win for Sweden away to Hungary.
He intercepted a pass out of defence by the home side and guided home a precise finish from quite a tight angle out on the left edge of the penalty area.
Ayari scored from a similar position with a curler against West Ham towards the end of last season.
He followed that with a fine finish in the success over Liverpool.
Ayari says he has always had the knack of finding the net and he has delivered on that in recent weeks.
He told reporters: “Like I said in interviews before I scored my first goal, I’ve always known how to score goals, I know I have an eye for goal.
“I just need to come in those positions.”
Evan Ferguson went on as a 58th-minute substitute as the Republic of Ireland drew 1-1 with Senegal in a friendly in Dublin.
Andrew Moran followed him on to the pitch on 81 minutes.
Repuclic boss Heimir Hallgrimsson hinted he was keen to see what midfielder Moran, who has been on loan at Stoke City, can do.
He said: “In a competitive game we probably wouldn’t have done so many substitutions, but we wanted to see players come in and give them a chance to shine.”