IAP not accepting license key

I’m running into a problem where I cannot set a license key for the in app purchasing.

Ive looked into how to set the in app purchasing key, but it seems like it has changed a few times the last few years.

How do I set the key correctly?

Please anyone?