Had the same issue on two webshops of my Customers. Instead of commenting out the Exception, i'll check if a empty element is give to the function, so on other cases (invalid URL) it should work as intended. public static function validate($url, $urlName = null)
{
// Paypal added new empty items to the items object
// "url": "",
// "image_url": ""
// which crashed the payment
if (!empty($url) && filter_var($url, FILTER_VALIDATE_URL) === false) {
throw new \InvalidArgumentException("$url: $urlName is not a fully qualified URL");
}
... View more