Integration with WooCommerce

I'd like to use WooCommerce as the payment system. I know how to create a function to update fields after a successful checkout with Woo.

Can you tell me what fields have to be updated to indicate that an appointment has been paid for, and if this is possible to do the way I envision?