CartThrob 9 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Rebilling

Setting Up Rebilling

Before scheduling rebilling, install and enable CartThrob Permissions Manager (cartthrob_permissions_manager) so Subscriptions can run correctly.

Rebilling is handled by running the Subscriptions CLI command on a schedule, typically with cron or systemd.

The schedule is directly tied to your Max Rebill Attempts setting. Running once per day is a common default.

Rebill Command

To run the rebill command:

eecli.php cartthrob:subscriptions:rebill

Two command line options are available:

--service / (-s) (boolean)

Run as a persistent service loop instead of a one-time terminal/cron execution.

--time / (-t) (integer)

The number of seconds to pause between iterations when running in service mode. Default is 86400.

Systemd Config File

CartThrob Subscriptions includes a basic .service file for Linux hosts using systemd. You can find it at cartthrob_subscriptions/lib/systemd/system.