This error indicates that you have In-App-Purchases disabled. To enable In-App-Purchases, please go to Settings > Screen Time > Content & Privacy Restrictions > Content & Privacy Restrictions > iTunes & App Store Purchases > In-app Purchases > Check Allow