Update payment.php

This commit is contained in:
Laurent Destailleur 2019-02-23 14:11:53 +01:00 committed by GitHub
parent f027bd2b08
commit b8df685186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,12 @@ if ($facid > 0)
$ret=$object->fetch($facid);
}
if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox', 'alpha')))
if (! empty($conf->stripe->enabled))
{
access_forbidden();
}
if (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox', 'alpha'))
{
$service = 'StripeTest';
$servicestatus = '0';