While there are prescribed methodologies for the middle layer when it comes to transaction management like Saga pattern etc. I want to know what's the advice on handling such on a mobile application that's talking to payment related API's.
The use case is an app that's placing an order for some food, the card is already on file on the server, the application may run into a server failure, in that case the error will be handled gracefully and a retry will be queued up, perhaps retry up to 3 times. Any other suggestions?