FIX url to stripe payment modes card_...
This commit is contained in:
parent
aa33e4fd2a
commit
36f31230b3
@ -472,7 +472,7 @@ if (empty($reshook))
|
|||||||
$_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid', 'int'), 'alpha');
|
$_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid', 'int'), 'alpha');
|
||||||
$_POST['model'] = GETPOST('modelrib'.GETPOST('companybankid', 'int'), 'alpha');
|
$_POST['model'] = GETPOST('modelrib'.GETPOST('companybankid', 'int'), 'alpha');
|
||||||
}
|
}
|
||||||
|
https://dashboard.stripe.com/search?query=risk_level%3Ahighest&account=acct_1CVGWQLYhjvFj9Sz
|
||||||
$id = $socid;
|
$id = $socid;
|
||||||
$upload_dir = $conf->societe->multidir_output[$object->entity];
|
$upload_dir = $conf->societe->multidir_output[$object->entity];
|
||||||
$permissioncreate=$user->rights->societe->creer;
|
$permissioncreate=$user->rights->societe->creer;
|
||||||
@ -762,9 +762,10 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
|||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
//print $stripecu;
|
//print $stripecu;
|
||||||
print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontowrite, 'string', '', null, null, '', 2, '', 'socid');
|
print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontowrite, 'string', '', null, null, '', 2, '', 'socid');
|
||||||
if ($stripecu && $action != 'editkey_account')
|
if (! empty($conf->stripe->enabled) && $stripecu && $action != 'editkey_account')
|
||||||
{
|
{
|
||||||
if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
|
$connect='';
|
||||||
|
if (!empty($stripeacc)) $connect=$stripeacc.'/';
|
||||||
$url='https://dashboard.stripe.com/'.$connect.'test/customers/'.$stripecu;
|
$url='https://dashboard.stripe.com/'.$connect.'test/customers/'.$stripecu;
|
||||||
if ($servicestatus)
|
if ($servicestatus)
|
||||||
{
|
{
|
||||||
@ -818,6 +819,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<!-- List of stripe payments -->'."\n";
|
||||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||||
print '<table class="liste" width="100%">'."\n";
|
print '<table class="liste" width="100%">'."\n";
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -879,15 +881,17 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $companypaymentmodetemp->stripe_card_ref;
|
print $companypaymentmodetemp->stripe_card_ref;
|
||||||
/*if ($companypaymentmodetemp->stripe_card_ref)
|
if ($companypaymentmodetemp->stripe_card_ref)
|
||||||
{
|
{
|
||||||
$url='https://dashboard.stripe.com/test/card/'.$companypaymentmodetemp->stripe_card_ref;
|
$connect='';
|
||||||
|
if (!empty($stripeacc)) $connect=$stripeacc.'/';
|
||||||
|
$url='https://dashboard.stripe.com/'.$connect.'test/search?query='.$companypaymentmodetemp->stripe_card_ref;
|
||||||
if ($servicestatus)
|
if ($servicestatus)
|
||||||
{
|
{
|
||||||
$url='https://dashboard.stripe.com/card/'.$companypaymentmodetemp->stripe_card_ref;
|
$url='https://dashboard.stripe.com/'.$connect.'search?query='.$companypaymentmodetemp->stripe_card_ref;
|
||||||
}
|
}
|
||||||
print ' <a href="'.$url.'" target="_stripe">'.img_picto($langs->trans('ShowInStripe'), 'object_globe').'</a>';
|
print ' <a href="'.$url.'" target="_stripe">'.img_picto($langs->trans('ShowInStripe'), 'object_globe').'</a>';
|
||||||
}*/
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print img_credit_card($companypaymentmodetemp->type);
|
print img_credit_card($companypaymentmodetemp->type);
|
||||||
@ -971,13 +975,17 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
|||||||
}
|
}
|
||||||
// Src ID
|
// Src ID
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
$connect='';
|
||||||
|
print $src->id;
|
||||||
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;
|
||||||
|
$url='https://dashboard.stripe.com/'.$connect.'test/search?query='.$src->id;
|
||||||
if ($servicestatus)
|
if ($servicestatus)
|
||||||
{
|
{
|
||||||
$url='https://dashboard.stripe.com/'.$connect.'sources/'.$src->id;
|
//$url='https://dashboard.stripe.com/'.$connect.'sources/'.$src->id;
|
||||||
|
$url='https://dashboard.stripe.com/'.$connect.'search?query='.$src->id;
|
||||||
}
|
}
|
||||||
print $src->id." <a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')."</a>";
|
print " <a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')."</a>";
|
||||||
print '</td>';
|
print '</td>';
|
||||||
// Img of credit card
|
// Img of credit card
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user