Follow the detailed instructions on how to disable or enable in-app purchases here:

https://support.apple.com/en-us/HT204396