During the woocommerce\_payment\_complete hook I receive the order and from that I extract the products using get\_items(). From here when I loop over the items and use get\_sku() to get the SKU but that returns the SKU of the main product instead of the SKU of the variant that was purchased. 

I've been Googling this issue this entire day and I got loads and loads of posts telling me how to do all manner of stuff with the variant once you have the variant id... but for the life of me I can't figure out how to GET the variant id!

Simply put:
I have one product (a hat) on my site and that product has 3 variants (baseball, trilby, stetson) each with a custom SKU with Item\_hat\_stetson set as the default. All I want to know is "Which one of the three hats did the person choose to buy?" and yet all I can determine is:

1. Yes, he bought a hat: SKU Item\_hat
2. Hats come in the varieties of baseball, trilby and stetson

How can I determine which variation the person selected? 

Simple, right? ...yet for the life of me I just can't figure that out. :( Please help...

Thanks