Hi,
Please understand you have to enable in-app purchase from
Apple APP Store for you package name
This is an image from
Apple App store:
https://i2.wp.com/wplms.io/wp-content/uploads/2017/12/itunescapabilities.png?resize=1024%2C431&ssl=1
And you are sharing Xcode image:
https://prnt.sc/qtzs9z