No, there is no a tutorial for this.
it requires hand coding to accomplish this task, depending on the payment gateway you use the process will be different. for a local payment gateway option, you would need to add code to the confirm page to loop through the cart items and update the stock column of the products table for each one.