Query IAP Purchases?

Is there a way to perform a query on which IAPs the user has purchased? Google has a way to do this and I need to access it.

I need to know what purchases the user has made. I’m not sure if this is already returned in a current listener somewhere?