purgeExpiredPayments

suspend fun purgeExpiredPayments(fromCreatedAt: Long = 0, toCreatedAt: Long = currentTimestampMillis()): Int

Purge all expired unpaid normal payments with creation times in the given time range.

Return

number of invoices purged

Parameters

fromCreatedAt

from absolute time in milliseconds since UNIX epoch when the payment request was generated.

toCreatedAt

to absolute time in milliseconds since UNIX epoch when the payment request was generated.