Update paymentmodes.php

This commit is contained in:
Laurent Destailleur 2018-10-16 19:49:16 +02:00 committed by GitHub
parent 2cf87db10a
commit 78d7ea459d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -959,6 +959,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print '<td>'; print '<td>';
print '</td>'; print '</td>';
} }
// Src ID
print '<td>'; print '<td>';
if (!empty($stripeacc)) $connect=$stripeacc.'/'; if (!empty($stripeacc)) $connect=$stripeacc.'/';
$url='https://dashboard.stripe.com/'.$connect.'test/sources/'.$src->id; $url='https://dashboard.stripe.com/'.$connect.'test/sources/'.$src->id;
@ -968,6 +969,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
} }
print "<a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$src->id."</a>"; 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')
{ {
@ -981,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.'';