It seems like the module did not modified to comply with recent core commits.
for now you can manually update the module.
edit this file
modules/custompayments/controllers/admin/AdminCustomPayments.php line 429
and change this
protected function uploadImage($id, $name, $dir, $ext = false, $width = null, $height = null)
{
$width = (int) Configuration::get(CustomPayments::IMAGE_WIDTH);
$height = (int) Configuration::get(CustomPayments::IMAGE_HEIGHT);
return parent::uploadImage($id, $name, $dir, $ext, $width, $height);
}
to this
protected function uploadImage($id, $name, $dir, $ext = false, $width = null, $height = null, $generateImageTypes = [])
{
$width = (int) Configuration::get(CustomPayments::IMAGE_WIDTH);
$height = (int) Configuration::get(CustomPayments::IMAGE_HEIGHT);
return parent::uploadImage($id, $name, $dir, $ext, $width, $height, $generateImageTypes);
}
just to point out that I am not familiar with the custompayment module so I don't know if you will have any other issues.