If you have downloaded <ROM> from the Google Play Store, you can set up a payment password to prevent accidental purchases of items.
[Set Up Payment Password on Google Play Store]
Open the Google Play Store app and tap on your profile picture on the right of the search bar.
Go to Settings > User Controls > Select Authentication Required for Purchases.
Choose "For all purchases through Google Play on this device."
Set up your Google account's payment password.