Automatically accepts eligible WHMCS orders when:
- an invoice is paid (
InvoicePaid), or - checkout completes for a free order (
ShoppingCartCheckoutComplete).
- Upload the
auto_accept_ordersfolder to:modules/addons/
- Confirm these files exist:
modules/addons/auto_accept_orders/auto_accept_orders.phpmodules/addons/auto_accept_orders/hooks.php
- In WHMCS Admin, go to Setup > Addon Modules.
- Find Auto Accept Orders and click Activate.
- Configure:
- Enable: turn the module on
- Admin Username: optional
- Save changes.
- If Admin Username is provided and matches an active Full Administrator, it is used for
localAPI('AcceptOrder'). - If it is blank or invalid, the module falls back to the first active Full Administrator.
- If no active Full Administrator is found, it falls back to the first active admin account.
- The module logs API outcomes in
mod_autoaccept_logs. - Free-order hook returns an empty array to avoid checkout flow interruption.