Improvement on auto-refund security deposit flow.
The automatic refund was not triggered due to multiple reasons: The transaction was created many days after the lead creation and the transaction was not a Stripe transaction.
So in case SD is collected days after booked/ created date, there is no transaction found to be refunded.
And for BDC payment, SD will not be auto refunded if payment is handled by BDC or even with payment processor integration if the payment is collected out of that point.
I think expanding the sear for transaction to refund would be much more helpful to improve this flow.
At this point, the auto-refund feature only works with Stripe transactions, and we do not intend to have this changed at the moment.