Where can I define ProductDefinition?

Hello,

I am currently implementing IAP for my iOS game and noticed that when a purchase was successful, I get an object of type PurchaseEventArgs which contains a ProductDefinition. ProductDefinition can have multiple PayoutDefinition objects with members like subtype or quantity.
That would be quite handy since i.e. I have 3 bundles which give 3, 8 or 20 “hints” (which I could store in the quantity field)

My problem: Where do I define the data that gets delivered to me in PayoutDefinition?
I logged in into my apple appstoreconnect site and I assumed this is where I define my IAPs. But on the site I can only specify a name, product ID and type. No option to specify a subtype or quanity (the ProductDefinition fields).
Does anyone know where I define the PayoutDefinition for my IAPs?

PayoutDefinitions can be defined in the IAP Catalog under Services > In App Purchasing > IAP Catalog.

I have not used them programmatically, not sure whether you can add them while creating your ConfigurationBuilder.Instance before passing that to UnityPurchasing.Initialize.

However, PayoutDefinitions would only exist in your game (locally), not on the App Stores, since they are not related. You would have to code what to do with them yourself, once a product has been purchased.

I never used the IAP catalog. Is this an addition to IAP by code or an alternative to IAP by code?
Cause currently I implemeneted everything via code.

The IAP Catalog is used by Unity IAP Codeless. Good for you not using it yet - it is barely usable in production, Unity IAP coding is the way to go.

Looking through the scripting reference is seems to be indeed possible to create PayoutDefinitions when creating ProductDefinitions for your products.