So I'm currently creating a booking system where people can book a time with someone and then pay. My goal is that when you've chosen your time I'd like the time to be 'reserved' so that no one can get it before you for a better user experience, in the case that the payment was successful I'd change the schedule database permanently and wouldn't revert it. But in the cases that someone has either cancelled their payment (this can be a cancellation or also just exiting the page hence the need for a timer to revert it.)
I have a few ideas on how to do this but I'm wondering if theres something already built into these technologies to allow for something like this rather easily.
Thanks so much for your time!