We are creating a payment processor. The business wants to send users a product when they receive a payment. This is easy enough using the
cardano-wallet api. However, we were made aware of the existence of rollbacks on the chain. In the event of a rollback, what is the best practice for handling a change?
For example we may have detected a payment for 30 ADA. A rollback occurs, and that payment is removed from the chain history. How do we detect that this happened? How can we have confidence that a payment will not be rolled back before sending the customer the product?