From 2cf87db10ae1916893caaacdf0626f3947d1f3f0 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Tue, 16 Oct 2018 17:59:58 +0200 Subject: [PATCH] Add source link in stripe --- htdocs/societe/paymentmodes.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 604012a24c3..0fcd7b120db 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -960,7 +960,13 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' print ''; } print ''; - print $src->id; + if (!empty($stripeacc)) $connect=$stripeacc.'/'; + $url='https://dashboard.stripe.com/'.$connect.'test/sources/'.$src->id; + if ($servicestatus) + { + $url='https://dashboard.stripe.com/'.$connect.'sources/'.$src->id; + } + print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$src->id.""; print ''; print ''; if ($src->object=='card')