How do I mark an order as paid?

So then what’s the procedure for doing this?
I just want to update the payment status in response to a webhook.