Could we help you? Please click the banners. We are young and desperately need the money
Safari blocks any window.open() function during an async call to provide "better" security. If you are using window.open() anyways inside an async call, Safari users will get a popup with the message, that a popup gets blocked.
To prevent this popup from appearing on Safari you need to open the window right before you start the async call but not inside the call. Now Safari is not preventing the window from opening and you can set it's location inside the async call to the URL you wish to redirect.
//Open the window before you start an async call let window = window.open(); //Now you can start an async call $.ajax({ url: "www.yourdomain.tld", type: "POST", data: { "action": "buy_new_car" }, success: function(data) { //Set the location of the window to the URL you wish to redirect win.location = "www.yourdomain.tld"; } })