purge Expired Payments
suspend fun purgeExpiredPayments(fromCreatedAt: Long = 0, toCreatedAt: Long = currentTimestampMillis()): Int
Content copied to clipboard
Purge all expired unpaid normal payments with creation times in the given time range.
Return
number of invoices purged
Parameters
from Created At
from absolute time in milliseconds since UNIX epoch when the payment request was generated.
to Created At
to absolute time in milliseconds since UNIX epoch when the payment request was generated.