diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index 896aecb1b8c..365fa59fdcb 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -742,7 +742,7 @@ if ($object->id > 0) {
print '';
print '';
- if (!empty($conf->global->STRIPE_SEPA_DIRECT_DEBIT_SHOW_OLD_BUTTON)) { // This is hidden, prefer to use mode enabled with STRIPE_SEPA_DIRECT_DEBIT
+ if (getDolGlobalString('STRIPE_SEPA_DIRECT_DEBIT_SHOW_OLD_BUTTON')) { // This is hidden, prefer to use mode enabled with STRIPE_SEPA_DIRECT_DEBIT
// TODO Replace this with a checkbox for each payment mode: "Send request to XXX immediatly..."
print "
";
//add stripe sepa button
@@ -781,14 +781,14 @@ if ($object->id > 0) {
if ($type == 'bank-transfer') {
print '