You need to specificate a merchant URL at the Docdata Backoffice.
Set the URLs to: https://your-whmcs-installation/modules/gateways/callback/docdata.php?key=&||i=