FIX stripe webhook ID constant set
This commit is contained in:
parent
7931f0b422
commit
d2bc3ac1ef
@ -55,6 +55,9 @@ if ($action == 'setvalue' && $user->admin)
|
||||
if (! $result > 0)
|
||||
$error ++;
|
||||
$result = dolibarr_set_const($db, "STRIPE_TEST_SECRET_KEY", GETPOST('STRIPE_TEST_SECRET_KEY', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
if (! $result > 0)
|
||||
$error ++;
|
||||
$result = dolibarr_set_const($db, "STRIPE_TEST_WEBHOOK_ID", GETPOST('STRIPE_TEST_WEBHOOK_ID', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
if (! $result > 0)
|
||||
$error ++;
|
||||
$result = dolibarr_set_const($db, "STRIPE_TEST_WEBHOOK_KEY", GETPOST('STRIPE_TEST_WEBHOOK_KEY', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
@ -64,6 +67,9 @@ if ($action == 'setvalue' && $user->admin)
|
||||
if (! $result > 0)
|
||||
$error ++;
|
||||
$result = dolibarr_set_const($db, "STRIPE_LIVE_SECRET_KEY", GETPOST('STRIPE_LIVE_SECRET_KEY', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
if (! $result > 0)
|
||||
$error ++;
|
||||
$result = dolibarr_set_const($db, "STRIPE_LIVE_WEBHOOK_ID", GETPOST('STRIPE_LIVE_WEBHOOK_ID', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
if (! $result > 0)
|
||||
$error ++;
|
||||
$result = dolibarr_set_const($db, "STRIPE_LIVE_WEBHOOK_KEY", GETPOST('STRIPE_LIVE_WEBHOOK_KEY', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user