diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php index 24224a4f18c..964280055c2 100644 --- a/htdocs/stripe/admin/stripe.php +++ b/htdocs/stripe/admin/stripe.php @@ -75,7 +75,7 @@ if ($action == 'setvalue' && $user->admin) $error ++; $result = dolibarr_set_const($db, "STRIPE_MINIMAL_3DSECURE", GETPOST('STRIPE_MINIMAL_3DSECURE', 'int'), 'chaine', 0, '', $conf->entity); if (! $result > 0) - $error ++; + $error ++; $result = dolibarr_set_const($db, "ONLINE_PAYMENT_CSS_URL", GETPOST('ONLINE_PAYMENT_CSS_URL', 'alpha'), 'chaine', 0, '', $conf->entity); if (! $result > 0) $error ++; @@ -265,13 +265,16 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // What is this for ? } // Minimal amount for force 3Dsecure if it's optionnal -print ''; -print $langs->trans("STRIPE_MINIMAL_3DSECURE").''; -print ''.$langs->getCurrencySymbol($conf->currency).''; +if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // TODO Not used by current code +{ + print ''; + print $langs->trans("STRIPE_MINIMAL_3DSECURE").''; + print ''.$langs->getCurrencySymbol($conf->currency).''; +} +// Warehouse for automatic decrement if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // What is this for ? { - // Stock for automatic decrement print ''; print $langs->trans("ONLINE_PAYMENT_WAREHOUSE").''; print $formproduct->selectWarehouses($conf->global->ONLINE_PAYMENT_WAREHOUSE,'ONLINE_PAYMENT_WAREHOUSE','',1,$disabled);