This because the gateway had issues with an autoloader or such in WHMCS. Don't know the exact cause, but this fixed it.