to solve this error you must assign a value (True) to the function
Intent pay_intent = new Intent(this, PayActivity.class); putNormalExtras(pay_intent);
if you use ActionBar assign the value true
pay_intent.putExtra("ActionBar",true);
change the AppTheme to any ActionBar Theme
for example :
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">