Right now, I have a function that updates some information about our sale in our database and is currently hooking in to 'woocommerce_order_items_table', because I need access to the Order object, but since this is fired every time the page loads, if the user refreshes or navigates to the order confirmation screen, it creates a duplicate call to our database.
I tried to find a hook on the documentation, but the hooks don't mention what actually fires them, or what arguments get passed to the hooked function.
I need a hook that satisfies the following criteria:
1. The function is fired when the user completes a purchase.
2. The function is fired only once per order.
3. The Order object is passed to the function.