IOS Promoted IAP

I have one question:

with this code from the doc:

local store = require( "plugin.apple.iap" )
 
local function transactionListener( event )
    -- ...
end
store.init( transactionListener )
 
 
local function deferredPurchases(event)
    local payment = event.payment
 
    -- Tore `payment` somewhere and when time is right call
    store.proceedToPayment(payment)
end
store.deferStorePurchases(deferredPurchases)

what exactly is the “payment” here? Where can I see what product should be bought in the transactionListener? What exactly happens inside the transactionListener when I call
store.proceedToPayment(payment)

Any help on this welcome!

Thank you!