Merge pull request #9768 from ptibogxiv/patch-75
Add source link in stripe
This commit is contained in:
commit
97273ff746
@ -959,9 +959,17 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
// Src ID
|
||||||
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>';
|
||||||
|
// Img of credit card
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if ($src->object=='card')
|
if ($src->object=='card')
|
||||||
{
|
{
|
||||||
@ -975,8 +983,8 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
|||||||
{
|
{
|
||||||
print '<span class="fa fa-university fa-2x fa-fw"></span>';
|
print '<span class="fa fa-university fa-2x fa-fw"></span>';
|
||||||
}
|
}
|
||||||
|
print'</td>';
|
||||||
print'</td><td valign="middle">';
|
print '<td valign="middle">';
|
||||||
if ($src->object=='card')
|
if ($src->object=='card')
|
||||||
{
|
{
|
||||||
print '....'.$src->last4.' - '.$src->exp_month.'/'.$src->exp_year.'';
|
print '....'.$src->last4.' - '.$src->exp_month.'/'.$src->exp_year.'';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user