Automatic Payment

The Auto Pay System simplifies the process of handling unpaid invoices by introducing an automated mechanism that ensures invoices are managed efficiently. This system is ideal for situations where a payment deadline is required, automatically handling overdue invoices after the specified time.

1

Automatic Payment Handling

Automatically processes overdue invoices after a defined time limit, ensuring no invoices are left unpaid indefinitely.

2

Configurable Payment Deadlines

Define the maximum number of days a user has to pay an invoice before the system intervenes.

3

Regular Invoice Checks

Periodically reviews unpaid invoices at set intervals, ensuring the system operates smoothly and efficiently.


Configuration Options

1

Config.AutoPayInterval

This value determines the interval, in minutes, at which the system checks for unpaid invoices. Example:

Config.AutoPayInterval = 10 -- System checks every 10 minutes
2

Config.LimitToPayInvoice

Specifies the maximum number of days allowed to pay an invoice before it is automatically handled.

Config.LimitToPayInvoice = 7 -- Invoices must be paid within 7 days

How It Works

1

Invoice Creation

When an invoice is issued, it is added to the system with a timestamp.

2

Regular Checks

The system reviews all unpaid invoices at intervals specified by Config.AutoPayInterval.

3

Overdue Handling

If the Config.LimitToPayInvoice threshold is exceeded, the system takes predefined actions, such as marking the invoice as unpaid or processing it automatically.

This configuration ensures a streamlined approach to managing invoices, reducing manual oversight while maintaining accountability.

Last updated