Documentation

Automated payment status check for transactions

Sometimes the result of a payment never reaches the site: the customer closes the browser and the webhook fails, or the site was down. The payment then stays without a result. The RO Payments console commands ask the payment provider for these payments, so you can run them from a cron job.

The commands come with the Console - RO Payments plugin, which must be enabled.

Run the commands

The commands run with the Joomla console, cli/joomla.php in the folder of the site:

/usr/bin/php /path/to/joomla/cli/joomla.php ropayments:status-update
  • /usr/bin/php is the location of PHP on the server; ask your hosting provider for the exact path and use the same PHP version as the site.
  • /path/to/joomla is the folder of the site on the server.

Add --help to a command to see its options. php cli/joomla.php list ropayments lists the commands.

ropayments:status-update

Checks the transactions that have a transaction ID but no result, that started after the last run of the command and more than 30 minutes ago. For each one it asks the payment provider for the status and updates the order, as the webhook would have done. At the end it stores the time of this run.

Options:

  • --lastRun - check the transactions since this date instead of the last run, for example --lastRun=2026-01-20
  • --status - also check transactions with these results, comma-separated, for example --status=open,expired

For example, check the open payments of the last week:

/usr/bin/php /path/to/joomla/cli/joomla.php ropayments:status-update --lastRun=2026-10-19 --status=open

Run it every hour or so.

ropayments:next-payment-date

Updates the subscriptions that are not cancelled and whose next payment date is today or has passed, with the status and next payment date at Mollie or Stripe. Run it once a day when you use recurring payments.

/usr/bin/php /path/to/joomla/cli/joomla.php ropayments:next-payment-date

Requirements

Your hosting must support cron jobs, or you need an external service that can run the commands.