The cron job

One line every minute keeps expiry, webhook retries and phone alerts running.

Updated 22 Nov 2026 · 1 min read

The cron job runs the background work: it expires old payments, retries webhooks, sends phone-offline alerts and cleans up. It should run every minute.

Add it in cPanel

  1. Open Admin → System → Cron job. It shows the exact command for your hosting, with a Copy button.
  2. In cPanel open Cron Jobs, choose Once Per Minute * * * * *, paste the command and press Add New Cron Job.

The command looks like this (your path is different):

php /home/USER/public_html/cron.php

If your host only allows URLs, use the URL form shown on the same page (it carries a secret key):

curl -s "https://pay.example.com/cron?key=YOUR_CRON_KEY" > /dev/null

Check that it runs

The Cron job page shows the last run, how it ran (CLI, CGI or URL) and a log of recent runs. Run now starts one run by hand.