Skip to content

Commit

Permalink
Merge pull request #9513 from ptibogxiv/patch-62
Browse files Browse the repository at this point in the history
FIX link in connect mode
  • Loading branch information
eldy committed Sep 15, 2018
2 parents 8ceee52 + 362c9fd commit e9159dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/societe/paymentmodes.php
Expand Up @@ -764,10 +764,11 @@
print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontowrite, 'string', '', null, null, '', 2, '', 'socid');
if ($stripecu && $action != 'editkey_account')
{
$url='https://dashboard.stripe.com/test/customers/'.$stripecu;
if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
$url='https://dashboard.stripe.com/'.$connect.'test/customers/'.$stripecu;
if ($servicestatus)
{
$url='https://dashboard.stripe.com/customers/'.$stripecu;
$url='https://dashboard.stripe.com/'.$connect.'customers/'.$stripecu;
}
print ' <a href="'.$url.'" target="_stripe">'.img_picto($langs->trans('ShowInStripe'), 'object_globe').'</a>';
}
Expand Down

0 comments on commit e9159dd

Please sign in to comment.