Closed devton closed 1 month ago
This is an interesting and valid use case. Let me think it through some more and maybe consider how this is possible with the current version. Thank you @devton.
Hi @devton, I've merged a fix to the main branch. I will be releasing version 0.6.5 this week, which includes other fixes. To solve your issue of an inflight roll back use the rufund endpoint(i'll document and share soon). When the refund endpoint is called it'll perform the rollback to in-flight if it has been voided.
Thank you for the insight.
Is your feature request related to a problem? Please describe. Some times our application can void a transaction after an expiration date in application, but sometimes the company can receive a late payment from a txn that was voided (we void a transaction also to dont keep a pending balance forever)
Describe the solution you'd like We can add a status rollback on inflight transactions that was voided and the recreate the transaction to be void or commit again
Describe alternatives you've considered For now I'm not voiding the transactions but subtracting the value from the payments expired on my database with the inflight balance