Looks like you have something wrong in plugin configuration - decimals.
You can also update in that file this line:
$decimals = ($custom_decimals <> -1 ? $custom_decimals : osp_param('price_decimals'));
into:
$decimals = (int)($custom_decimals <> -1 ? $custom_decimals : osp_param('price_decimals'));