Knowledge Base

Automatic Renewals (Cron)

This is what a plain redirect gateway can't do. The plugin runs its own cron task,
viva_auto_bill, daily at 23:00.

What it does

  • Finds due auto-debit invoices for clients who have a saved Viva recurring token.
  • Groups them per client and per currency and charges the saved token unattended.
  • Records each payment against the right invoice and emails the result.

Recurring works because the first payment is made with allowRecurring=true; Viva returns a
recurring-enabled transactionId that the plugin stores and reuses for renewals via a synchronous
POST /api/transactions/{transactionId}.

Requirement

Blesta's own cron must be running (Settings > Company > Automation). If the site cron is off, no
renewals are charged.

Please rate this article to help us improve our Knowledge Base.

0 0