Autoclose customers with fraud order

A simple WHMCS hook to automatically close accounts who are marked Inactive and only have fraudulent orders.

If an account has order marked as Fraud but also has an order not marked as fraud, the account is skipped. Runs after WHMCS’s daily cron