You can find detailed instructions on how to prevent accidental/unauthorized in-app purchases here:
For IOS: https://support.apple.com/en-us/HT204396
For Android: https://support.google.com/googleplay/answer/1626831?hl=en
For IOS: https://support.apple.com/en-us/HT204396
For Android: https://support.google.com/googleplay/answer/1626831?hl=en