Payment Refunds

NOTE

This task is used only for the Sana Pay add-on and is available when the add-on is installed.

The Payment refunds scheduled task is used to check the posted credit notes in the ERP system and send requests to Sana Pay to refund payments based on the available credit notes.

For more information, see How to Make a Refund.

Set Up the Payment Refunds Task

To set up the Payment refunds scheduled task, click Edit.

Graphical user interface, text

Description automatically generated

The table below provides the description of the Payment refunds task settings.

Settings

Description

Run on schedule

Use this option to enable automatic running of the task according to the configured schedule or disable it to allow only manual start of the task.

 

If you enable Run on schedule, you should enter either the interval in minutes when the task should run automatically or the fixed time.

Run interval (in minutes)

Enter the time interval in minutes when the task should run automatically.

Run time

Enter a fixed time when the task should start automatically. Use the time picker to set the desired time. The user’s local time zone is used.

Send e-mail to administrator when task has failed

Use this option to enable or disable e-mail notifications when a scheduled task fails.

 

If the scheduled task has failed, the webstore administrator receives an e-mail with the name of the task that failed, the name of the webstore, which is useful in case you have several webstores, when the task failed, and the error message. Thanks to this, the webstore administrator can quickly respond to problems with data synchronization.

Maximum archived log files

Enter the maximum number of log files to store. If this number exceeds, the oldest log file will be removed and the new one will be created.

Batch size

Enter the number of posted credit notes that should be handled in one batch.

Maximum interval between retries (seconds)

Enter the maximum interval between retries. When some posted credit notes cannot be checked for some reason, the task will make another attempt during the specified time interval.

Maximum retries count

Enter the maximum retries count. When some posted credit notes cannot be checked for some reason, this value specifies how many times the task should try to check them again.

Maximum items to skip before failure

Enter the maximum items to skip before failure. When some posted credit notes cannot be checked for some reason, this value specifies how many credit notes can be skipped before the task fails.