Add source link in stripe

This commit is contained in:
ptibogxiv 2018-10-16 17:59:58 +02:00 committed by GitHub
parent f5029bf52b
commit 2cf87db10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -960,7 +960,13 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print '</td>';
}
print '<td>';
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 "<a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$src->id."</a>";
print '</td>';
print '<td>';
if ($src->object=='card')