fix url in connect mode

This commit is contained in:
ptibogxiv 2018-09-14 15:27:43 +02:00 committed by GitHub
parent 5dcbfe0e56
commit bf38f1a80f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,10 +150,11 @@ if (!$rowid)
print '<TR class="oddeven">'; print '<TR class="oddeven">';
// Ref // Ref
$url='https://dashboard.stripe.com/test/payments/'.$charge->id; if (! empty($conf->stripe->enabled) && !empty($stripeaccount)) $connect=$stripeaccount.'/';
$url='https://dashboard.stripe.com/'.$connect.'test/payments/'.$charge->id;
if ($servicestatus) if ($servicestatus)
{ {
$url='https://dashboard.stripe.com/payments/'.$charge->id; $url='https://dashboard.stripe.com/'.$connect.'payments/'.$charge->id;
} }
print "<TD><a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$charge->id."</a></TD>\n"; print "<TD><a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$charge->id."</a></TD>\n";
// Stripe customer // Stripe customer