How a payment webhook updates an order after checkout closes

A provider sends an event to a server endpoint when a payment changes state.

A provider may deliver a payment event after the customer leaves the site. Associate the event with the original order, verify its authenticity and make processing safe when the same notification arrives again.