diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php
index ff2f3cf7096..3d55e53dbbb 100644
--- a/htdocs/stripe/charge.php
+++ b/htdocs/stripe/charge.php
@@ -149,11 +149,12 @@ if (!$rowid)
}
print '
';
- // Ref
- $url='https://dashboard.stripe.com/test/payments/'.$charge->id;
+ // Ref
+ if (! empty($conf->stripe->enabled) && !empty($stripeaccount)) $connect=$stripeaccount.'/';
+ $url='https://dashboard.stripe.com/'.$connect.'test/payments/'.$charge->id;
if ($servicestatus)
{
- $url='https://dashboard.stripe.com/payments/'.$charge->id;
+ $url='https://dashboard.stripe.com/'.$connect.'payments/'.$charge->id;
}
print "| ".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$charge->id." | \n";
// Stripe customer