From bf38f1a80fa9115ed5482b75789c4b3be9d4c8b1 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Fri, 14 Sep 2018 15:27:43 +0200 Subject: [PATCH] fix url in connect mode --- htdocs/stripe/charge.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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