Update transaction.php
This commit is contained in:
parent
5021252622
commit
3416d2bdd1
@ -60,20 +60,18 @@ $stripe = new Stripe($db);
|
|||||||
|
|
||||||
llxHeader('', $langs->trans("StripeTransactionList"));
|
llxHeader('', $langs->trans("StripeTransactionList"));
|
||||||
|
|
||||||
if (! empty($conf->stripe->enabled))
|
if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox', 'alpha')))
|
||||||
{
|
{
|
||||||
$service = 'StripeTest';
|
$service = 'StripeTest';
|
||||||
$servicestatus = 0;
|
$servicestatus = '0';
|
||||||
if (! empty($conf->global->STRIPE_LIVE) && ! GETPOST('forcesandbox', 'alpha'))
|
dol_htmloutput_mesg($langs->trans('YouAreCurrentlyInSandboxMode', 'Stripe'), '', 'warning');
|
||||||
{
|
|
||||||
$service = 'StripeLive';
|
|
||||||
$servicestatus = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
$stripe=new Stripe($db);
|
|
||||||
$stripeacc = $stripe->getStripeAccount($service); // Stripe OAuth connect account of dolibarr user (no network access here)
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$service = 'StripeLive';
|
||||||
|
$servicestatus = '1';
|
||||||
|
}
|
||||||
|
$stripeacc = $stripe->getStripeAccount($service);
|
||||||
/*if (empty($stripeaccount))
|
/*if (empty($stripeaccount))
|
||||||
{
|
{
|
||||||
print $langs->trans('ErrorStripeAccountNotDefined');
|
print $langs->trans('ErrorStripeAccountNotDefined');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user