';
- if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
+ if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) {
if (!empty($conf->global->STRIPE_LIVE_WEBHOOK_KEY) && !empty($conf->global->STRIPE_LIVE_SECRET_KEY) && !empty($conf->global->STRIPE_LIVE_WEBHOOK_ID)) {
\Stripe\Stripe::setApiKey($conf->global->STRIPE_LIVE_SECRET_KEY);
$endpoint = \Stripe\WebhookEndpoint::retrieve($conf->global->STRIPE_LIVE_WEBHOOK_ID);
@@ -377,7 +377,7 @@ if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // What is this for ?
}
// Card Present for Stripe Terminal
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
+if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // TODO Not used by current code
print '
';
print $langs->trans("STRIPE_CARD_PRESENT").'
';
if ($conf->use_javascript_ajax) {
@@ -390,7 +390,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
}
// Locations for Stripe Terminal
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
+if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // TODO Not used by current code
print '
';
// Activate Klarna
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
+if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // TODO Not used by current code
print '
';
print $langs->trans("STRIPE_KLARNA").'
';
if ($conf->use_javascript_ajax) {
@@ -467,7 +467,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
}
// Activate Bancontact
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
+if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // TODO Not used by current code
print '
';
print $langs->trans("STRIPE_BANCONTACT").'
';
if ($conf->use_javascript_ajax) {
@@ -481,7 +481,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
}
// Activate iDEAL
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
+if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // TODO Not used by current code
print '
';
print $langs->trans("STRIPE_IDEAL").'
';
if ($conf->use_javascript_ajax) {
@@ -495,7 +495,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
}
// Activate Giropay
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
+if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // TODO Not used by current code
print '
';
print $langs->trans("STRIPE_GIROPAY").'
';
if ($conf->use_javascript_ajax) {
@@ -509,7 +509,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
}
// Activate Sofort
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
+if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { // TODO Not used by current code
print '