In order to avoid accidental in-app purchases, you will need to adjust your Google Play Store settings.
Please follow these steps:
- Access the Google Play Store.
- Enter the "Settings" menu.
- Look for "User Controls" and activate "Use password to restrict purchases"
- Enter your password and tap confirm when finished.
- Any subsequent in-game purchase after changing your settings will require your security password.
Remember: after entering your password once, you can make purchases on Google Play for 30 minutes without entering it again. If your device is running Android OS 4.2 or higher and someone else regularly uses it, you might (depending on your device) be able to create a separate User profile for them by going to Settings > Users > Add user, then following the on-screen instructions.