From 8db9d195214a3030f427cbe20969ca8022d7b017 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Tue, 17 Apr 2018 10:14:36 +0200 Subject: [PATCH 1/2] ADD minimal amount to require 3Dsecure if it's possible --- htdocs/stripe/admin/stripe.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php index b005eb63b41..89b0461dbda 100644 --- a/htdocs/stripe/admin/stripe.php +++ b/htdocs/stripe/admin/stripe.php @@ -1,4 +1,4 @@ - * Copyright (C) 2017 Olivier Geffroy * Copyright (C) 2017 Saasprov @@ -76,6 +76,9 @@ if ($action == 'setvalue' && $user->admin) $result = dolibarr_set_const($db, "STRIPE_BANK_ACCOUNT_FOR_BANKTRANSFERS", GETPOST('STRIPE_BANK_ACCOUNT_FOR_BANKTRANSFERS', 'int'), 'chaine', 0, '', $conf->entity); if (! $result > 0) $error ++; + $result = dolibarr_set_const($db, "STRIPE_MINIMAL_3DSECURE", GETPOST('STRIPE_MINIMAL_3DSECURE', 'int'), 'chaine', 0, '', $conf->entity); + if (! $result > 0) + $error ++; $result = dolibarr_set_const($db, "ONLINE_PAYMENT_CSS_URL", GETPOST('ONLINE_PAYMENT_CSS_URL', 'alpha'), 'chaine', 0, '', $conf->entity); if (! $result > 0) $error ++; @@ -264,6 +267,11 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // What is this for ? print ''; } +// 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) // What is this for ? { // Stock for automatic decrement From 3acd1b536b5e2b7922d556c7d549141cbc566668 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Tue, 17 Apr 2018 10:15:14 +0200 Subject: [PATCH 2/2] Update stripe.php --- htdocs/stripe/admin/stripe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php index 89b0461dbda..62ca1000822 100644 --- a/htdocs/stripe/admin/stripe.php +++ b/htdocs/stripe/admin/stripe.php @@ -1,4 +1,4 @@ -?php + * Copyright (C) 2017 Olivier Geffroy * Copyright (C) 2017 Saasprov