diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php index 3d55e53dbbb..3efcd9ca611 100644 --- a/htdocs/stripe/charge.php +++ b/htdocs/stripe/charge.php @@ -62,16 +62,16 @@ llxHeader('', $langs->trans("StripeChargeList")); if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox','alpha'))) { $service = 'StripeTest'; - $servicestatus = '0'; + $servicestatus = '0'; dol_htmloutput_mesg($langs->trans('YouAreCurrentlyInSandboxMode', 'Stripe'), '', 'warning'); } else { - $service = 'StripeLive'; - $servicestatus = '1'; + $service = 'StripeLive'; + $servicestatus = '1'; } -$stripeaccount = $stripe->getStripeAccount($service); +$stripeacc = $stripe->getStripeAccount($service); /*if (empty($stripeaccount)) { print $langs->trans('ErrorStripeAccountNotDefined'); @@ -109,9 +109,9 @@ if (!$rowid) print "\n"; - if ($stripeaccount) + if ($stripeacc) { - $list=\Stripe\Charge::all(array("limit" => $limit), array("stripe_account" => $stripeaccount)); + $list=\Stripe\Charge::all(array("limit" => $limit), array("stripe_account" => $stripeacc)); } else { @@ -149,8 +149,10 @@ if (!$rowid) } print '