Merge pull request #27636 from frederic34/patch-5

clean code
This commit is contained in:
Laurent Destailleur 2024-01-20 00:38:12 +01:00 committed by GitHub
commit 5d5d996b4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,13 +33,13 @@ global $conf;
global $stripearrayofkeysbyenv;
$stripearrayofkeysbyenv = array(
0=>array(
"secret_key" => !getDolGlobalString('STRIPE_TEST_SECRET_KEY') ? '' : $conf->global->STRIPE_TEST_SECRET_KEY,
"publishable_key" => !getDolGlobalString('STRIPE_TEST_PUBLISHABLE_KEY') ? '' : $conf->global->STRIPE_TEST_PUBLISHABLE_KEY
array(
"secret_key" => getDolGlobalString('STRIPE_TEST_SECRET_KEY'),
"publishable_key" => getDolGlobalString('STRIPE_TEST_PUBLISHABLE_KEY')
),
1=>array(
"secret_key" => !getDolGlobalString('STRIPE_LIVE_SECRET_KEY') ? '' : $conf->global->STRIPE_LIVE_SECRET_KEY,
"publishable_key" => !getDolGlobalString('STRIPE_LIVE_PUBLISHABLE_KEY') ? '' : $conf->global->STRIPE_LIVE_PUBLISHABLE_KEY
array(
"secret_key" => getDolGlobalString('STRIPE_LIVE_SECRET_KEY'),
"publishable_key" => getDolGlobalString('STRIPE_LIVE_PUBLISHABLE_KEY')
)
);