Go to your device settings and General > Restrictions to set a Passcode which prevents unwanted in-app purchases in applications.