I do not think you have to enable allow_url_fopen on the CWP server side.
Maybe you can try to make the api call through a text browser like lynx or make a curl call from the server on which you whmcs installed to the CWP server and see what happens in the output from cli.
Can also be a firewall issue etc. Maybe the whmcs server is blocking outgoing connections to port 2030?