Anton Dowds’ equaliser earned Ayr a season-ending 3-3 draw at home to Dunfermline.
Mark McKenzie fired the hosts into an early lead but Chris Kane hauled Dunfermline level.
Kane then headed the visitors into the lead and a Josh Edwards volley made it 3-1 just before half-time.
But Scott Tomlinson’s ball over the top was lashed home by 17-year-old Lucas McRoberts before Dowds turned and finished Francis Amartey’s pass in the 73rd minute.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.