IPhone able to connect with Wi-Fi password. Mac will not

IPhone able to connect with Wi-Fi password. Mac will not.

That what you get for buying apple. Make sure the Mac has the right wpk password for the Wi-Fi as the iPhone does

Pick up the MacBook Air and take it to Starbucks. Test the connection there.

Change ssid name and try of your mac

Try to forget that network and then start connecting it again.