diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php
index 1336bed8575..f0b9c6361bf 100644
--- a/htdocs/stripe/admin/stripe.php
+++ b/htdocs/stripe/admin/stripe.php
@@ -199,15 +199,15 @@ if (empty($conf->stripeconnect->enabled))
$url = dol_buildpath('/public/stripe/ipn.php?test', 2);
$out.= '';
$out.= ajax_autoselect("onlinetestwebhookurl", 0);
- print '
'.$out;
+ print '
'.$out;
print '
';
if ( !empty($conf->global->STRIPE_TEST_WEBHOOK_KEY) && !empty($conf->global->STRIPE_TEST_SECRET_KEY) && !empty($conf->global->STRIPE_TEST_WEBHOOK_ID) ) {
\Stripe\Stripe::setApiKey($conf->global->STRIPE_TEST_SECRET_KEY);
$endpoint = \Stripe\WebhookEndpoint::retrieve($conf->global->STRIPE_TEST_WEBHOOK_ID);
$endpoint->enabled_events = $stripearrayofwebhookevents;
-if ( GETPOST('webhook','alpha') == $conf->global->STRIPE_TEST_WEBHOOK_ID ) {
-if ( empty( GETPOST('status','alpha') )) {
-$endpoint->disabled = true;
+if ( GETPOST('webhook', 'alpha') == $conf->global->STRIPE_TEST_WEBHOOK_ID ) {
+if ( empty( GETPOST('status', 'alpha') )) {
+ $endpoint->disabled = true;
} else {
$endpoint->disabled = false;
}}
@@ -216,15 +216,15 @@ $endpoint->save();
if ($endpoint->status == 'enabled')
{
print '';
- print img_picto($langs->trans("Activated"),'switch_on');
+ print img_picto($langs->trans("Activated"), 'switch_on');
}
else
{
print '';
- print img_picto($langs->trans("Disabled"),'switch_off');
+ print img_picto($langs->trans("Disabled"), 'switch_off');
}
//print $endpoint;
-} else print img_picto($langs->trans("inactive"),'statut5');
+} else print img_picto($langs->trans("inactive"), 'statut5');
print' | ';
} else {
print '| '.$langs->trans("StripeConnect").' | ';
@@ -267,9 +267,9 @@ if ( !empty($conf->global->STRIPE_LIVE_WEBHOOK_KEY) && !empty($conf->global->STR
\Stripe\Stripe::setApiKey($conf->global->STRIPE_LIVE_SECRET_KEY);
$endpoint = \Stripe\WebhookEndpoint::retrieve($conf->global->STRIPE_LIVE_WEBHOOK_ID);
$endpoint->enabled_events = $stripearrayofwebhookevents;
-if ( GETPOST('webhook','alpha') == $conf->global->STRIPE_LIVE_WEBHOOK_ID ) {
-if ( empty( GETPOST('status','alpha') )) {
-$endpoint->disabled = true;
+if ( GETPOST('webhook', 'alpha') == $conf->global->STRIPE_LIVE_WEBHOOK_ID ) {
+if ( empty( GETPOST('status', 'alpha') )) {
+$endpoint->disabled = true;
} else {
$endpoint->disabled = false;
}}
@@ -278,15 +278,15 @@ $endpoint->save();
if ($endpoint->status == 'enabled')
{
print '';
- print img_picto($langs->trans("Activated"),'switch_on');
+ print img_picto($langs->trans("Activated"), 'switch_on');
}
else
{
print '';
- print img_picto($langs->trans("Disabled"),'switch_off');
+ print img_picto($langs->trans("Disabled"), 'switch_off');
}
//print $endpoint;
-} else print img_picto($langs->trans("inactive"),'statut5');
+} else print img_picto($langs->trans("inactive"), 'statut5');
print '
';
}
else