This is distributed transaction problem, and there are multiple ways to solve it with the simple one being callback (webhook) with timeout. Put debit in a pending state, wait for response from API call, if successful complete transaction else fail and log it.
This is distributed transaction problem, and there are multiple ways to solve it with the simple one being callback (webhook) with timeout. Put debit in a pending state, wait for response from API call, if successful complete transaction else fail and log it.
21
17
55
9K
12