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