Jun 6, 2019
0
Level 9
How to make payment and booking atomic.
I am trying to make a futsal booking system. Here, a user selects the date as his/her preference and make payments to book it.
But, here I got a problem what if the payment is failed? How can I make this transaction atomic?
This means, book the system if payment is successful or make the payment if the booking is successful. What is the best approach for dealing with this? Any idea would be appreciated.
Please or to participate in this conversation.