You click “Place Order” on Amazon.

A second later:

Payment is processed

Inventory is updated

Email is sent